Skip to content

Instantly share code, notes, and snippets.

@ptiringo
Created June 9, 2014 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptiringo/4a4ea5a323e0c1bbd6fa to your computer and use it in GitHub Desktop.
Save ptiringo/4a4ea5a323e0c1bbd6fa to your computer and use it in GitHub Desktop.
glassfish datasource
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
<jdbc-connection-pool datasource-classname="org.h2.jdbcx.JdbcDataSource" res-type="javax.sql.DataSource" name="SamplePool">
<property name="user" value="sa"/>
<property name="password" value="password"/>
<property name="url" value="jdbc:h2:fle:~/sample"/>
</jdbc-connection-pool>
<jdbc-resource jndi-name="jdbc/SampleDS" pool-name="SamplePool/>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment