[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed
oskar.carlstedt
do-not-reply at jboss.com
Sun Feb 3 16:00:11 EST 2008
Hi All!
Important to know. An ejb is NOT started just because it is deployed. It is just available to a "client" through the application server. There is no method invoked on an ejb during or just after the deploy.
Ok, there are ways to go around this. Add a service to your ejb that is invoking your ejb. Use the @Service-annotation and then you get methods like start(), stop() create() and destroy().
Kind regards!
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125893#4125893
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125893
More information about the jboss-user
mailing list