aspose file tools*
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
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: 126
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DB connection pool per webapp if defined in context.xml?