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 Type 4 driver for db2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
jQuery in Action, 3rd edition