This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes DB connection pool per webapp if defined in context.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "DB connection pool per webapp if defined in context.xml?" Watch "DB connection pool per webapp if defined in context.xml?" New topic
Author

DB connection pool per webapp if defined in context.xml?

Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 123
    
    5

Quick question, if I have my <Resource.../> tag in my webapp's META-INF/context.xml to set up a database connection pool, where does Tomcat put this pool? Specifically what I want to know, if I deploy 3 WAR files all with the same <Resource.../> tag in their META-INF/context.xml files, will Tomcat create 3 seperate database connection pools or will Tomcat somehow know the pools are the same and all three apps will share a single connection pool?


Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB connection pool per webapp if defined in context.xml?