driver class is com.ibm.db2.jdbc.app.DB2Driver and not db2.jdbc.driver.DB2Driver
Better use the DataSource
Chris
sumit shah <[EMAIL PROTECTED]> on 23/08/2000 15:25:13
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Christian FEARD/LOGIX/GROUPE_OPEN)
Subject: idmwebsphere and db2
Hi,
I am using IBM WebSphere and DB2 database for developing my application.
Can anyone please help me out with the mapping to the database.???
I wrote the following code but that didnt work.
Please help.
Connection connection;
try {
Class.forName("db2.jdbc.driver.DB2Driver");
String url = "jdbc:db2:JVCLIVE";
String username = "user";
String password = "passwd";
connection = DriverManager.getConnection(url,
username,password);}
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets