Skip to content

Instantly share code, notes, and snippets.

@gerrymclarnon
Last active December 11, 2015 16:39
Show Gist options
  • Save gerrymclarnon/4629327 to your computer and use it in GitHub Desktop.
Save gerrymclarnon/4629327 to your computer and use it in GitHub Desktop.
A TomEE 1.5 resource file that can be referred to from a persistence unit file, e.g. https://gist.github.com/4629416.
<!--
A TomEE 1.5 Resource definition file used to configure application specific resources.
Location: <webapp>/WEB-INF/classes/META-INF/resources.xml
-->
<resources>
<Resource id="jdbc/sample" type="DataSource">
JdbcDriver org.apache.derby.jdbc.ClientDriver
JdbcUrl jdbc:derby://localhost:1527/sample
UserName app
Password app
JtaManaged true
</Resource>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment