Commit b83db559 authored by prane's avatar prane

closeda dn set null of open cursors and prepared statement as per ref from connection log jsp

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203484 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6fe59bc6
......@@ -157,6 +157,10 @@ public class StationIC extends ValidatorEJB implements StationICLocal, StationIC
keyFlag = rs.getString("KEY_FLAG");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
keyFlag = keyFlag == null ? "M" : keyFlag.trim();
if( keyFlag.equalsIgnoreCase("M") && (stanCode == null || stanCode.trim().length() == 0))
{
......@@ -476,6 +480,10 @@ public class StationIC extends ValidatorEJB implements StationICLocal, StationIC
{
msgType = rs.getString("MSG_TYPE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception ex)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment