Configuracao do bd no Glassfish .
authorMichele Silva <michele.silva@gmail.com>
Mon, 9 Jan 2012 21:39:09 +0000 (19:39 -0200)
committerMichele Silva <michele.silva@gmail.com>
Mon, 9 Jan 2012 21:39:09 +0000 (19:39 -0200)
setup/glassfish-resources.xml [new file with mode: 0644]

diff --git a/setup/glassfish-resources.xml b/setup/glassfish-resources.xml
new file mode 100644 (file)
index 0000000..749d399
--- /dev/null
@@ -0,0 +1,13 @@
+<?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 allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.postgresql.ds.PGSimpleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="post-gre-sql_simdecs_simdecsPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
+        <property name="serverName" value="127.0.0.1"/>
+        <property name="databaseName" value="simdecs"/>
+        <property name="User" value="simdecs"/>
+        <property name="Password" value="tatuira"/>
+        <property name="URL" value="jdbc:postgresql://127.0.0.1/simdecs"/>
+        <property name="driverClass" value="org.postgresql.Driver"/>
+    </jdbc-connection-pool>
+    <jdbc-resource enabled="true" jndi-name="pg" object-type="user" pool-name="post-gre-sql_simdecs_simdecsPool"/>
+</resources>