Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
Connection connection1 = null;
AS400JDBCDriver d = new AS400JDBCDriver();
Properties p = new Properties();
AS400 o = new AS400("HOSTSEVRENAME");
p.put("user", "USERNAME");
p.put("password", "PASSWORD");
try
{
connection1 = d.connect(o,p,"LIB");
//on this line the application gets hang
}
catch(SQLException sr)
{
try
{
connection1.close();
}
catch(Exception e)
{
response.sendRedirect(response.encodeRedirectURL("login.jsp?action=efailed_" + e.getMessage()));
}
response.sendRedirect(response.encodeRedirectURL("login.jsp?action=srfailed_" + sr.getMessage()));
}
|
|
Loading Advertisement... |