Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created October 25, 2012 20:17
Show Gist options
  • Save gAmUssA/3955144 to your computer and use it in GitHub Desktop.
Save gAmUssA/3955144 to your computer and use it in GitHub Desktop.
Tomcat's context.xml with Oracle DataSource
<?xml version="1.0" encoding="UTF-8"?>
<Context privileged="true" antiResourceLocking="false"
antiJARLocking="false" reloadable="true">
<!-- JOTM -->
<Transaction factory="org.objectweb.jotm.UserTransactionFactory"
jotm.timeout="60" />
<Resource name="jdbc/cleardb" auth="Container" type="javax.sql.DataSource"
username="admin" password="secret" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@localhost:1522:xe"
maxActive="8" />
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment