| 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
|
|
|