[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-04-01 Thread tpawankumar
Hi oskar/wolfc I have tried both options suggested by you but it is not working. Following is the code of my stateless bean | @Service | @Stateless | @Remote(ConfigService.class) | @Local(ConfigService.class) | public class ConfigServiceBean implements ConfigService { | | |

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-04-01 Thread oskar.carlstedt
Hi! When annotating with the service you have four life cycle methods that you can implement. *create *start *stop *destroy Try call test from start and you'll se that it will be called. Cheers /Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-04-01 Thread oskar.carlstedt
Here is a short eaxample: | @Service | @Management(MyServiceManagement.class) | @Depends(jboss.ws:service=DeployerInterceptorEJB3) | public class MyService implements MyServiceManagement { | |private Timer timer = null; | |@Resource |private EJBContext

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-04 Thread wolfc
I'm planning to change this behavior in light of EJB 3.1. The supported way will be to use @PostConstruct in a @Singleton. So for now I would say use @PosConstruct in a @Service bean. Note that the create, start, stop, destroy methods will become deprecated and might disappear completely. View

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-04 Thread [EMAIL PROTECTED]
Hi All, I got this problem resolved for EJB3 by creating a sar which calls the SessionBean and packaging with my ear as well explained in this link. http://www.tomlauren.com/weblog/archives/14.html When EJB3.1 is officially released I can think of other options. Thanks for all your help.

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-03 Thread oskar.carlstedt
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

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-02 Thread [EMAIL PROTECTED]
I think I m using ejb timer service. Pl. see my code. Can you provide me with an example please. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125756#4125756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125756

[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed

2008-02-01 Thread ragavgomatam
Use ejb Timer Service View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125725#4125725 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125725 ___ jboss-user mailing list