This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing Contexts  RSS feed

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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!