Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do close/destroy connection pool?

 
Ron Newman
Ranch Hand
Posts: 1056
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't this the application server tools' responsibility (the same way as it's the appserver tools used to create/configure the DataSources)?
 
Ron Newman
Ranch Hand
Posts: 1056
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic