on 04-27-2007 3:09 PM
Hi all,
Do you know if there is a possibility to call a given method when an EJB is deployed?
I know that it is possible to use the annotation @PostConstruct to execute some kind of "registration" work. In my case, it should be done when the engine is starting.
Thanks and best regards,
David
Hi,
Using a servlet you can a Servlet context listener(javax.Servlet.ServletContextListener). This can be used to invoke a method which can some job, this servelt can be packed with your EAR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.