-
1. Re: How to force te container to call a stateful sb's remove method
wdfink Nov 9, 2011 9:59 AM (in response to ericjvandervelden)The client must request the remove the SFSB, e.g. if the client is logged out.
In this case the container will call the @Remove method.
-
2. Re: How to force te container to call a stateful sb's remove method
ericjvandervelden Nov 9, 2011 4:31 PM (in response to wdfink)Hello Wolf-Dieter,
Thanks for your reply. But I do not understand it. Could you explain me further?
Thanks,
-
3. Re: How to force te container to call a stateful sb's remove method
wdfink Nov 10, 2011 2:04 AM (in response to ericjvandervelden)You talk about a Stateful SessionBean, in opposition to a StatelessSessionBean where the remove method is called only if the container decide to destroy the bean and not pool it, a StatefulSession is hold as long as the client does not call the remove.
The StatefulSession is connected/controlled by a single client. After a time the bean will be passivated (e.g. serialized to disk) and there is a treshold after that the bean will be destroyed by the container, in this case the remove method will be called also.
-
4. Re: How to force te container to call a stateful sb's remove method
bondchan921 Dec 4, 2012 5:38 AM (in response to wdfink)Hi Wolf-Dieter,
I have the same need as Eric, call the remove() of SFSB, but our container was configed with <cache-policy>org.jboss.ejb.plugins.NoPassivationCachePolicy</cache-policy>, according to jboss doc, we need to remove the bean instance explicitly.
not try the user log out, is there any other way I can used to remove the SFSB ?
-
5. Re: How to force te container to call a stateful sb's remove method
wdfink Dec 5, 2012 6:11 AM (in response to bondchan921)There should be a configurable timeout to remove such forgotten SFSB's. But this should be an exception normally the client should call the remove method.
I'm not sure where to configure this right now