File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Pooling DB2 connection" Watch "Pooling DB2 connection" New topic
Author

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?
Thanks,
Tom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pooling DB2 connection
 
Similar Threads
Proper way to close Connection, Statement & ResultSet
Need Help Pulling Data From Oracle Table (Newby)
DB2 Pool Data
How to connect to mysql database?
Prepared Statement null pointer exception help