Hi Experts,
I have created a J2EE Application using Design Pattern. In which i am connecting to MaxDB which is installed on local machine. I am using NW 2004 SE SP9
I have used following code for connection to MaxDB.
try {
Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//Get Connection
try {
con = DriverManager.getConnection("jdbc:sapdb://localhost/MAXDB?sqlmode=ORACLE","DBADMIN", "hcl123");
} catch (SQLException e1) {
e1.printStackTrace();
}
return con;
Now when i execute the above code i am getting exception:
com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://localhost/MAXDB [Cannot connect to host localhost:7210 [Connection refused: connect], -813.].#
PS# Also, the same code is running well when i am executing it via PSVM.
Please help!
Rgds,
Pankaj