jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes Pooling DB2 connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Pooling DB2 connection" Watch "Pooling DB2 connection" New topic

Pooling DB2 connection

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

I have some code I am trying to pool a connection for DB2

When I run this I get an exception

com.ibm.db2.jcc.a.SqlException: Failure in loading T2 native library db2jcct2

This looks like it is looking for a type 2 JDBC connection with the client. I am using a type 4 (pure java) jar. (db2jcc.jar). Is there a different way to set up a pooled connection without the client? And how do I set the URL of database?
It is sorta covered in the JavaRanch Style Guide.
subject: Pooling DB2 connection
It's not a secret anymore!