Hi,

The following code works fine in two of my modules but crashes the J2EE
server when the third module is called.

All the modules are called in sequence from JSP files. I am uable to
understand the reason why should this happen.

Please help.

private Connection getConnection() throws SQLException {

try {

Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");

String url = "jdbc:odbc:eTECGEN";

con = DriverManager.getConnection(url,"sa","");  <<<--- This fails....

return con;

} catch(ClassNotFoundException CNFE){

System.out.println(CNFE.getMessage());

}

return null;

}

Thanks and Regards,
Ashish Bhatia
TSG @6203447



Visit http://www.niit.com for eCommerce Solutions.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to