This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Garbage COllection  RSS feed

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In EJB appserver, how to make sure that bean instance can be garbage collected. Do we need to take any programatic precautions?
Ramdhan YK
 
Matts Smith
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the container manages the references to EJBs. You don't have to take any action to ensure GC does it's job.
a point to note is that you cannot use "this" outside of the bean's scope (i.e. cannot return the "this" reference to anyone)
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Matt.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!