This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Type 4 driver for db2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Type 4 driver for db2" Watch "Type 4 driver for db2" New topic

Type 4 driver for db2

Ranjith Kalarikkal

Joined: Mar 27, 2003
Posts: 8
I want to know which is the type4 driver for db2 and a sample code to connect the db2 database from a servlet. I also want to know the what all configurations need to do.
thanks and regards,
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The typical response to questions like this is: What do you have so far?
You can search for a Type 4 DB2 driver on the JDBC Driver Search Page. You connectto DB2 the same way you connect to any other database. Since you are doing it from a Servlet, you will probably want to configure a DataSource.
I agree. Here's the link:
subject: Type 4 driver for db2
Similar Threads
how to include db2jcc.jar and db2jcc_license_cu.jar (db2 driver) into my project
Does DB2 support Scrollable Resultsets with Callable Statements
Works with JDBC/ODBC but not Direct JDBC
DB2 connection without the client