• Post Reply Bookmark Topic Watch Topic
  • New Topic

Timeout waiting for free connection  RSS feed

 
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At times I am getting the following error in my application - com.ibm.ejs.cm.pool.ConnectionWaitTimeoutException: Timeout waiting for free connection
I am using DataSource to connect to the oracle database. Ihave used this finally block to close the connection once its done. Is it necessary to close ResultSet and Statement objects also..??

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not skilled in exact these things, but I could say clear and simple:
you should close everything that has close() method.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!