Skip to content

Instantly share code, notes, and snippets.

@IntegrityKnight
Last active November 9, 2018 06:30
Show Gist options
  • Save IntegrityKnight/78107a687d8bd95382eafefa773b60bc to your computer and use it in GitHub Desktop.
Save IntegrityKnight/78107a687d8bd95382eafefa773b60bc to your computer and use it in GitHub Desktop.
Paste tomee.xml to conf folder for JNDI use
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
<!-- see http://tomee.apache.org/containers-and-resources.html -->
<!-- activate next line to be able to deploy applications in apps -->
<!-- <Deployments dir="apps" /> -->
<Resource id="FirstDB_datasource" type="DataSource">JdbcDriver org.apache.derby.jdbc.ClientDriver
JdbcUrl jdbc:derby://172.20.0.2:1527/FirstDB
UserName Stanley
Password javatoybox</Resource>
</tomee>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment