Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pooling DB2 connection

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic