This content has been marked as final.
Show 3 replies
-
1. Re: AS7 Stateless Beans and Annotations
wdfink Oct 28, 2012 2:38 PM (in response to bill.rosenberg)Hi Bill,
the @Startup annotation will only have an effect if you use @Singleton instead of @Staeless.
@PrePassivate and @PostActivate are only available for StatefullBeans (only here you have passivation)
Also you should notice that all public callback methods are included in the NoInterfaceView!
-
2. Re: AS7 Stateless Beans and Annotations
bill.rosenberg Oct 28, 2012 3:36 PM (in response to wdfink)I updated the bean to remove the passivate and postactivate callbacks and the other callbacks are still not being called.
-
3. Re: AS7 Stateless Beans and Annotations
wdfink Oct 29, 2012 2:58 AM (in response to bill.rosenberg)Do you replace @Stateless with @Singleton, only Singleton Beans can have a eager initialization.
See the EJB specification chapter 4.7/4.8