File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes DB2 JDBC connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DB2 JDBC connection" Watch "DB2 JDBC connection" New topic

DB2 JDBC connection

Chris Bojinca

Joined: Oct 14, 2002
Posts: 13
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

Joined: Jul 09, 2001
Posts: 1879

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.
I agree. Here's the link:
subject: DB2 JDBC connection
jQuery in Action, 3rd edition