Connection pooling in Swing based Application

試著忘記壹切 提交于 2019-12-06 13:00:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!