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 {
|
|
|
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 :
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
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
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.
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
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
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