Can I passivate a Stateful Session Bean whenever I want, not only when the container does? And how?
now why in the world would you want to do that??????????
Ok, what we want is some way to make the user´s session lifetime lasts the time we tell it to last. We want each user´s session lives as long as its SFSB.
Ah, we´re using Weblogic 6.0.
You can specify the idle timeout of a SFSB in the deployment descriptor, but not the total life time.
When a client session ends you could call ejbRemove() on the SFSB. I think that's what you need to do and not passivation when the client session ends.
I don't know of any way to explicitly passivate a SFSB. I am not sure why you would want to do that. The container does that sort of resource management.