Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container invokes ejbRemove() of session bean

 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have a query regarding the ejbRemove() callback on the stateless bean.
Will this call by the container result in the bean instance being moved to the garbage collector?
 
Patrick Williams
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paresh, Yes, the container will call this on a stateless session bean when it wants to reduce the amount of bean within a given pool. Worth mentioning: This action is not a result of any client call though.

HTH
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Patrick !!
So the a call to the ejbRemove() by the container will result in the instance being moved to garbage collection for both stateless as well as stateful session beans, although the initiating actions differ for both.

Regards,
Paresh Vernekar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic