File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes How to Pool a DataBase's Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "How to Pool a DataBase Watch "How to Pool a DataBase New topic
Author

How to Pool a DataBase's Connection

gao zhixin
Ranch Hand

Joined: Jan 18, 2006
Posts: 42
Now I have a Database Driver, and Spring distribution, and I want to know how to pool my database's connection, the DataSourceTransactionManager seems could do which, but its documentation only said "potentially allowing for one thread Connection per DataSource. "
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

all of jdbc connection pooling frameworks are listed here
http://www.java-source.net/open-source/connection-pools
but if you want to use spring for your application base and need to use spring facilities then i suggest you look at:
myjavablog.blogspot.com/2005/06/spring-connection-pooling-with-dbcp.html
and Spring manual chapter about jdbc resources
www.springframework.org/docs/reference/jdbc.html


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Ken Krebs
Ranch Hand

Joined: Nov 27, 2002
Posts: 451
The Petclinic sample app also shows how to do it.


kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
 
 
subject: How to Pool a DataBase's Connection
 
Threads others viewed
Connection Pool Refreshing
connection pooling in tomcat
Threads and DB Access
Configure Datasource with Tomcat
enterprise application with many users
IntelliJ Java IDE