> -----Original Message-----
> From: Nabil Abbas [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 25, 2000 8:28 AM
> To:   [EMAIL PROTECTED]
> Subject:      DB2 JDBC servlet on NT
>
> Hi all,
>
> Could anyone help me in this.
> I am not able to connect to DB2 using this code in a servlet. However
> the code works just fine in a java application.
> Any hints ?
>
>
> ---------------------------------------------------------------------
>    try {
>      // Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
                 Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
>     }
>     catch (Exception e) {
>      e.printStackTrace();
>      }
>    }
>    Connection con = null;
>    String url="jdbc:db2:dbname";
>    try
>     {
>      con = DriverManager.getConnection(url, "****","*****");
>      Statement stmt = con.createStatement();
>      .....
> ---------------------------------------------------------------------
>
> Regards,
> Nabil
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to