Datasource in global context.xml seems to be created multiple times

Solution Verified - Updated -

Issue

  • We've created a datasource in the tomcat global context.xml. The datasource seems to be created and duplicated for each application. For instance, with maxIdle set to 25 and four applications deployed, there appears to actually be 100 idle connections allowed to the database.

Environment

  • JBoss Enterprise Web Server (JWS)
  • Tomcat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content