Commit e04007b5 authored by msalla's avatar msalla

Connection closed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200771 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c89ab8c6
...@@ -80,6 +80,15 @@ public class POrderAmdPostSave extends ValidatorEJB implements ...@@ -80,6 +80,15 @@ public class POrderAmdPostSave extends ValidatorEJB implements
pstmt1.setString(2, tranid); pstmt1.setString(2, tranid);
pstmt1.setInt(3, lineNo); pstmt1.setInt(3, lineNo);
count = pstmt1.executeUpdate(); count = pstmt1.executeUpdate();
//added- connection close-Monika-13-05-2019
if (pstmt1 != null)
{
pstmt1.close();
pstmt1 = null;
}
} }
if (pstmt != null) if (pstmt != null)
{ {
...@@ -175,6 +184,18 @@ public class POrderAmdPostSave extends ValidatorEJB implements ...@@ -175,6 +184,18 @@ public class POrderAmdPostSave extends ValidatorEJB implements
e1.printStackTrace(); e1.printStackTrace();
} }
} }
finally {
try
{
//added- connection close-Monika-10-05-2019
conn.close();
conn = null;
}
catch (Exception e){}
}
return errorString; return errorString;
} }
......
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