Forums Register Login

How do close/destroy connection pool?

+Pie Number of slices to send: Send
If I have a connection pool registered in JNDI as a DataSource, how do I get rid of it when I no longer need it, and thereby release all of the pooled connections?
I don't see a close() or destroy() method in either the DataSource or ConnectionPoolDataSource interface.
+Pie Number of slices to send: Send
Isn't this the application server tools' responsibility (the same way as it's the appserver tools used to create/configure the DataSources)?
+Pie Number of slices to send: Send
I don't know. What is an "application server tool" and how does it get invoked when a servlet context is being shut down?
I'm not using any "tools" that I know of to configure or create the data source; I'm just adding stuff to server.xml and web.xml .
[ July 24, 2003: Message edited by: Ron Newman ]
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1178 times.
Similar Threads
Connection Pooling and JSTL
Orphan Timeout & Idle Timeout in WebSphere 4.0
Database Connection Pooling initialization with dbcp
How do you close the JDBC connection back to the Connection pool?
A small chicken and the egg situation!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:12:03.