SQL Exception while connecting to DB2 UDB from a Java application

Hi,

I downloaded and installed the DB2 client and I am using the driver "COM.ibm.db2.jdbc.net.DB2Driver".

I use this to connect to a DB2 UDB server (running on AIX) from a Java application running on Solaris. I get the following error:

COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01

I have tried a lot of things and can't figure out what's going on. Can anyone help me figure out what is wrong with this ?

Thanks

Bala.

[521 byte] By [bala_r2] at [2007-9-26 4:32:45]
# 1

if its a java application and not an applet you may want to use COM.ibm.db2.jdbc.app.DB2Driver.

Also as you have installed the client you may want to run the CAE(Client application enabler) on the client machine and connect and configure the database on the client.

Incase you still want to use the .net.DB2Driver you will have to run a db2 script on the command window on the server by the name db2jstrt to start the applet server on db2 server.

Hope this helps

tarun123 at 2007-6-29 17:47:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...