|
|
Re: EJB question
|
Posted: Sep 30, 2002 12:11 AM
|
|
whenever the idletimeout seconds is reached the container will call the ejbPassivate() method.
The Conversational state of the client will be written to the hard disc(Secondary Storage place) before calling the ejbPassivate() method.
At passivation time the container uses object serialization (or an equivalent protocol) to convert the bean?s conversational state to a bit-blob and write the state out to disk.
Coming to Stateless Bean, though the container will invoke the ejbActivate() and ejbPasivate(), the state will not be retained, since the intent of using a stateless bean is to behave independently, irrespective of the client. these methods in stateless bean are used for removing activating and passivating the beans from the pool.
Hope the answer would suffice.
|
|