问题
I have one application in Java Swing. In which i have used one connection for the application on single database. But now multiple users are usig that application , so everytime new connection is getting created. DB is coming very slow in performance; Can I use connection pooling in Swing based desktop based application. DB used is SQL server 2000.
Any help appriciated. Thanx in advance.
回答1:
Yes you can use C3P0
There are many connection pooling libraries in fact.
回答2:
http://commons.apache.org/pool/ might be also helpful. I actually had the same question for CouchDB here: Connection pool for couchdb
来源:https://stackoverflow.com/questions/10409626/connection-pooling-in-swing-based-application