JDBC Problems connecting to DB2

I have an agent that I need to connect to a DB2 server running on a seperate machine from the Domino server. When the agent runs I receive the following:AMgr: Agent (‘Load DB2 CSS.JOBS Table’ in ‘projects\css_billing\css.nsf’) printing: Could not establish connection to DB2!

10/19/2010 07:00:35 AM AMgr: Agent (‘Load DB2 CSS.JOBS Table’ in ‘projects\css_billing\css.nsf’) error message: com.ibm.db2.jcc.am.zn: [jcc][t4][2030][11211][3.57.110] A communication error occurred during operations on the connection’s underlying socket, socket input stream,

or socket output stream. Error location: Reply.fill(). Message: Connection reset. ERRORCODE=-4499, SQLSTATE=08001

I can connect to the DB2 database using the DB2 client but not using JDBC from the Domino server. Any insight to this problem will be greatly appreciated.