-
1. Re: ejbRemove for SLSB not called during shutdown
guy_rouillier Mar 20, 2002 12:32 PM (in response to guy_rouillier)I really need a reply on this. Is the ejbRemove method supposed to be called for SLSB when JBoss is shutting down? If not, then I've got to find another way to clean up resources I acquired during ejbCreate. Any suggestions?
-
2. Re: ejbRemove for SLSB not called during shutdown
pazu Mar 20, 2002 3:26 PM (in response to guy_rouillier)It seems that the EJB specification does not dictates ejbRemove() to be called before the bean destruction. I think you'll have to find another way to do your finalization (perhaps a finalize() method? I'm not sure if the spec permits this).
-
3. Re: ejbRemove for SLSB not called during shutdown
g_babu Mar 21, 2002 4:47 AM (in response to guy_rouillier)Try using ejbActive to acquire resource and release them in ejbPassivate.
Removing a SLSB does not necessarily translate into actual deletion of bean, it just goes into the pooled state.
Samething happens in create, create doesn't necessarily translate to actual create, the container could just activate a bean from the pool.
Ganesh -
4. Re: ejbRemove for SLSB not called during shutdown
guy_rouillier Mar 21, 2002 9:44 PM (in response to guy_rouillier)I've never see activate or passivate invoked for stateless session beans. Because they are stateless, they can be just thrown away and recreated if necessary. I have log.info calls in all the bean methods, and I've never see activate calls logged for SLSB.
-
5. Re: ejbRemove for SLSB not called during shutdown
g_babu Mar 22, 2002 8:37 AM (in response to guy_rouillier)My Apologies, What I said(Activate and Passivate) is true for SFSB.
Ganesh