• Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing JDBC connection

 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we try closing a connection object after completing our transaction = do we need to explicitly set the connection reference to null for it to be regained or would simply closing the connection (conn.close()) suffice ?
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think just conn.close() will suffice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!