vikasbapat
asked on
Running AS/400 Program Remotely Connection gets Hang!
Hi Experts!
I am using jsp to connect DB2 Universal database for iseries, but my application is hanging while trying to connect to the 400. No exception is returned - it just sits there. I have no real knowledge of the 400 side of things so I don't know how to log user activity to see what is going wrong or anything.
I have checked with debugging on the line connection1 = d.connect(o,p,"xxxxx"); it gets hanged. please help me out of this problem.
I am using jsp to connect DB2 Universal database for iseries, but my application is hanging while trying to connect to the 400. No exception is returned - it just sits there. I have no real knowledge of the 400 side of things so I don't know how to log user activity to see what is going wrong or anything.
I have checked with debugging on the line connection1 = d.connect(o,p,"xxxxx"); it gets hanged. please help me out of this problem.
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()));
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what do you mean by hang? when does it unhang and what message do you receive?