Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Connection Pooling

 
Steve Granton
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Does Tomcat provide database connection pooling.
If so can someone post me a link to an example of how to set it up.
Does it use data sources and JNDI to obtain a reference to the connection pool?
Cheers,
Steve
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat doesn't provide database anything.
However, it's not such a big deal to setup connection pools using JDBC and do your own.
Struts DOES provide some basic (and extensible) support for connection pooling. It's one of the topics covered in the sample app for this article:
http://www.fawcette.com/javapro/2002_04/magazine/features/tholloway/
The sample app itself is running on a Tomcat server
at http://www.mousetech.com/strutsdemo/index.jsp and is annotated so you can see the components at work (hint: look at the struts-config.xml files and the "xxxxForm.java" files.
 
Michael Jaeger
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in fact, Tomcat does provide connection pooling.
See here http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic