users@glassfish.java.net

Re: Connecting to DB2 database on a mainframe

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Nov 2007 12:03:36 PST

I just connected using the following config:

<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="com.ibm.db2.jcc.DB2SimpleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" 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="db2-pool" 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="user" value="foo"/>
      <property name="password" value="bar"/>
      <property name="driverType" value="4"/>
      <property name="portNumber" value="50000"/>
      <property name="databaseName" value="cts5"/>
      <property name="serverName" value=mysystem.east"/>
    </jdbc-connection-pool>


I only needed to add: db2jcc_license_cu.jar and db2jcc.jar to domains/domain1/lib/ext

and i can successfully ping my db2 server
[Message sent by forum member 'lancea' (lancea)]

http://forums.java.net/jive/thread.jspa?messageID=244146