This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Q on session bean lifecycle: removing a passivated stateful bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Q on session bean lifecycle: removing a passivated stateful bean" Watch "Q on session bean lifecycle: removing a passivated stateful bean" New topic
Author

Q on session bean lifecycle: removing a passivated stateful bean

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi,

Referring to p.209-213 of HF-EJB.
What happens when the client calls
remove() on a passivated bean?

Does the container activate the
bean since the client has requested
removal, or for performance reasons
does it send the bean to the garbage
collector?

Cheers,

Gian


"Eppur si muove!"
subba rao pasupuleti
Greenhorn

Joined: Nov 03, 2004
Posts: 4
ejbRemove() not revoked,it will be sent to garbage collection.
if you want to perform anything before you sent to garbage. you need to specify them in ejbPassivate().
by doing this you will achieve objective even it didn't call ejbRemove().
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Q on session bean lifecycle: removing a passivated stateful bean
 
Similar Threads
Please explain...
Bean Passivation
Lifecycle of a SFSB with respect to activation
What happens when the client calls remove while the bean is Passivated??
Help me understand ejbPassivate, ejbRemove in Stateful Session