wood burning stoves 2.0*
The moose likes JDBC and the fly likes Pooling DB2 connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Pooling DB2 connection
Similar Threads
How to connect to mysql database?
DB2 Pool Data
Need Help Pulling Data From Oracle Table (Newby)
Prepared Statement null pointer exception help
Proper way to close Connection, Statement & ResultSet