posted 17 years ago
Hi Karthik
A SFSB could be moved out of the Method-Ready state in two ways: by removing the bean and going to the Does Not Exist state, or via passivation going to the Passivated state. When the clients chouse to remove the bean, that�s it the bean is removed from cache the ejbRemove() method is invoked and the bean is gone. As for passivating/removing SFSB probably different container have different strategies. WebLogic forexample maintains a cache of SFSB that has either a LRU (eager passivation) or NRU (lazy passivation) algorithm. Depending on the passivation algorithm chousen the container might first passivate the bean and remove it from the disk after exceeding the idle-timeout-seconds in the passivated state (LRU), or it might remove the bean directly (without passivating it!) if the bean exceeds the idle-timeout-seconds (NRU).
Regards.
I think, therefore I exist -- Rene Descartes