• Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing Contexts

 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this is a really stupid question, but I'm a bit lazy: is it really necessary to explicitly close a Context (javax.naming.Context that is)? Or can I just wait until GC gets ahold of that sucker and kills it for me? I'm just using the regular JNDI-RMI server that comes along with JBoss, if that makes a difference, so it's not like I'm connecting to some freaky server that's consuming alot of resources (I think).

As always, your thoughts are appreciated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!