This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See Anyways thanks ! Next on I shall keep patience ...but you have been great.!!!
posted 13 years ago
Gee...........A big typooo there.......... plaese dont get me as I said in last post.........just a typo afterall( and so big at that...)
Stateless beans are pooled but not passivated. Statefull beans are passivated but not pooled.
Amol, keep a small list of questions to be asked on javaranch and keep on reading the book anyway. If you get answers in chapters ahead you can re-look the list and come up with genuine difficulties. Might save some time for you!
I just realized that my study guide is not totally clear about the descriptions of ejbActivate() and ejbPassivate().
The 2.1 specifications says the following on page 76:
To efficiently manage the size of its working set, a session bean container may need to temporarily transfer the state of an idle stateful session bean instance to some form of secondary storage. The transfer from the working set to secondary storage is called instance passivation. The transfer back is called activation. A container may only passivate a stateful session bean instance when the instance is not in a transaction.