Commit 213af180 authored by ssalve's avatar ssalve

Done changes in finally block to resolve issues related to unclosed...

Done changes in finally block to resolve issues related to unclosed connection/statement on 13NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173473 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 69a121ba
...@@ -1786,11 +1786,27 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca ...@@ -1786,11 +1786,27 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
{ {
try try
{ {
/*if(conn != null)
{
conn.close();
}
conn = null;*/
//Added by sarita on 13-11-2017[start]
if(conn != null) if(conn != null)
{ {
conn.close(); conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
} }
conn = null;
} }
catch(Exception d) catch(Exception d)
{ {
......
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