users@glassfish.java.net

Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Sep 2008 06:01:17 PDT

Hello,

I am trying to connect my application server to my DB2 databse. I have copied the db2jcc.jar to my C:\Sun\AppServer\lib directory.

I have used the following configuration:

Data Sourcename = com.ibm.db2.jcc.DB2DataSource

Resource Type = javax.sql.connectionpooldatasource

Under Properties I have entered the appropriate values for

Database name
port number
servername
password
user

I receive the following error when trying to ping:
jcc1038912245http://3.50.152 Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null

thanks for the help!
[Message sent by forum member 'dbansal' (dbansal)]

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