This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to configure connection pool in tomcat

 
Abhilash Boinapally
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
presently i am using weblogic 8.1 while configuring we first created a connection pool then we created datasource but in tomcat 5.0 i did not see the option for creating connection pool.i now want to use tomcat for debugging purpose then tell me how to configure my database to tomcat
 
Uma Mahi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use DBCP from org.apache.tomacat.DBCP...But first, you have to configure the JNDI DataSource in Tomcat by adding a declaration for the resource to server.xml file.


and configure your JNDI reference.

you have to insert a <resource-ref> tag into the web.xml deployment descriptor file.

you have to set the <listener> tag for registering a ServletContextListener as shown below:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic