Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OS390 JDBC Connection to DB2 from JSP

Bill Cochrane
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to DB2 from a JSP. I'm using Websphere Application Server 4.0 running under OS390. I keep getting a server-side error (I don't yet know how to see what the error is).
Do I use the following driver?
or since I am not (yet) using SQLJ should it be:
"" ?
My URL is: "jdbc b2os390 BT1" where DBT1 is the local DBT instance.
Omitting the try/catch statements I have:
String db2Driver = "ibm.sql.DB2Driver";
String url = "jdbc b2os390 BT1";
Connection con;
con = DriverManager.getConnection (url);
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!