This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 975
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: 975
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
Bean Passivation
Lifecycle of a SFSB with respect to activation
Please explain...
What happens when the client calls remove while the bean is Passivated??
Help me understand ejbPassivate, ejbRemove in Stateful Session