• Post Reply Bookmark Topic Watch Topic
  • New Topic

Garbage COllection

 
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!