Skip to content

Instantly share code, notes, and snippets.

@Koichi-Kobayashi
Created December 14, 2015 17:01
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 Koichi-Kobayashi/d3f248fa51527e51b6c8 to your computer and use it in GitHub Desktop.
Save Koichi-Kobayashi/d3f248fa51527e51b6c8 to your computer and use it in GitHub Desktop.
glassfish-resourcesサンプル
<?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.postgresql.ds.PGSimpleDataSource" res-type="javax.sql.DataSource" name="SamplePool">
<property name="user" value="postgres"/>
<property name="password" value="aipo"/>
<property name="url" value="jdbc:postgresql://localhost:5433/org001"/>
</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