aspose file tools*
The moose likes Tomcat and the fly likes Apache Commons GenericObjectPool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Commons GenericObjectPool" Watch "Apache Commons GenericObjectPool" New topic
Author

Apache Commons GenericObjectPool

Siri Reddy
Greenhorn

Joined: Oct 20, 2006
Posts: 17
Hi All,
i am useing Apache Commons GenericObjectPool, in one case i want to flush all connections.
how to flush(Close) all connections.

Thanks in Advance.
Siri
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Whats wrong with the close() method? As described in the Javadocs.

If the objects you are pooling require special handling when flushing/being discarded, I think you will have to program that yourself. From my cursory examination of the API, it looks like your implementation of PoolableObjectFactory can specify what happens to the discarded object in the destroyObject method.

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Apache Commons GenericObjectPool