Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JNDI datasource

Status
Not open for further replies.

greygirl

Programmer
Jun 12, 2002
34
0
0
US
Help!!
I am using JNDI datasource for connectionpooling with oracle 9i and Tomcat as appserver. Everything works well. My question is when I am done with all the database activities, don't I have to close the pool somewhere....??? I am closing the connection, the resultset, statement and all that. But how about the pool itself??
Suraj
 
The point of a connection pool, is that the client (ie Tomcat in this case) maintains a number of constant connections to the database - thus eliminating the time to make IO net conns to the db server. So, the pool should never be "shut down" unless your client (Tomcat) shuts down. Closing the db related objects is good enough, and you should not concern yourself with the pool.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top