Hi.
 
I was using the MS Access database in JSP and Servlet by ODBC. This was wrk nicely. But now the same database I created in DB2, It's not working.
 
Code which, i was using with JDBC-ODBC for MS Access
---------------------------------------------
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager("jdbc:odbc:databasename");
 
Code which, i was using with DB2 for DB2 database
---------------------------------------------
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
Connection con = DriverManager("jdbc:db2://IP Address/port/databasename");
 
For the DB2, It is not connecting and giving exception ClassNotFound
 
 
B'rgds
 
Toseef Alam
 

Reply via email to