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

DB2 JDBC connection

 
Chris Bojinca
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me what jar and what class file should I use to get a JDBC connection to a DB2 database?
Do you have an example of a method that gets such a connection?
Thank you very much
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have a look at Toolbox for Java & JTOpen. You pretty much have 2 standard choices;
If the code is going to be run exclusively on the AS/400, then use the IBM Toolbox for java. If you are going to run it from a client or some other OS, then definitely use JTOpen.
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic