Re: When will the ejbPassivate and ejbActivate be invoked
Tuesday, April 2, 2002 08:06 AM
the container will only passivate when it needs to passivate. if there is a heavy load on the server and ejb container needs more memory, it will passivate stateful session beans. but if you deploy a stateful session bean, get reference to it and wait for passivation, it may never occur. load the server with many users all getting access to the stateful session bean and you will see that as the load on the server increases, the container will passivate stateful session beans and will invoke ejbPassivate() and subsequently ejbActivate() when necessary.