Skip to content

Instantly share code, notes, and snippets.

@marcioviegas
Last active September 17, 2015 18:26
Show Gist options
  • Save marcioviegas/f4b3a9645e24cfa4e5ec to your computer and use it in GitHub Desktop.
Save marcioviegas/f4b3a9645e24cfa4e5ec to your computer and use it in GitHub Desktop.
<!-- The contents of this file will be loaded for each web application -->
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jdbc/web" auth="Container" type="javax.sql.DataSource" maxActive="100"
maxIdle="30" maxWait="10000" username="<%= db_user %>" password="<%= db_password %>" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://<%= db_host %>:3306/<%= db_schema %>"/>
<Resource name="jdbc/secure" auth="Container" type="javax.sql.DataSource" maxActive="100"
maxIdle="30" maxWait="10000" username="<%= db_user %>" password="<%= db_password %>" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://<%= db_host %>:3306/<%= db_schema %>"/>
<Resource name="jdbc/storage" auth="Container" type="javax.sql.DataSource" maxActive="100"
maxIdle="30" maxWait="10000" username="<%= db_user %>" password="<%= db_password %>" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://<%= db_host %>:3306/<%= db_schema %>"/>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment