• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DB2 Connection Pooling working

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been trying for the last few days to connect to a DB2 database from WebSphere 3.5 (on Redhat) using the extended JDBC 2.0 API. Finally I got an answer from someone on a newsgroup, but I thought I'd also post it here because it looks like a lot of people run in to this.
I was getting a ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver (or also COM.ibm.db2.jdbc.DB2XADataSource if JTA is turned on) when trying to use the connectiong pooling via JNDI.
Besides doing usejdbc2 and having all the environment variables setup correctly, you also need to edit the $WAS_HOME/bin/admin.config file and add the /java12/db2java.zip file to the admin's classpath. For me this made everything magically start working.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic