passivate and activate is must for statefullsession bean
Joined: Jul 15, 2002
Hi, For statefull session bean Passivation and activationis must? I will agree this one. but we are calling just empty method, what is the use ? if we are not calling these 2 methods and passing the parameters in create method what will happen ?
Thank you,<br />Sanju
Joined: Apr 21, 2004
It is not too clear your question.
Anyway, what I understood is that ejbPassivate and ejbActivate are callbacks from the container. The client do not call them.
Call parameters in the create? activate? passivate? they are not related. When a client call create for a statefull bean, passivate and activate are not called in that precise moment.
Hope this make a little clear!
Joined: Jan 29, 2003
The question might be this ... If you call methods that do not preserve any state, why bother with passivate and activate? The better question might be why do you have methods like that on a stateFUL bean? It sounds like they belong on stateLESS bean. Can you split your curren bean into two?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi