title: How can multiple webapps in the same tomcat instance share database connection pool?
body: <p>Having in mind that each webapp has its own separate database (but all databases are in the same database server).</p>
  
  <p>The scenario is that I have a multi-tenant saas application - I deploy the same application for each customer. Each customer works on a database that is called <code>db_cid</code>, where <code>cid</code> is the customer id, i.e. a a unique customer identifier.</p>
  
  <p>Working with hibernate.</p>