aspose file tools*
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 Spring in Action this week in the Spring 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Q on session bean lifecycle: removing a passivated stateful bean