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,12 +1786,28 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
{
try
{
if(conn != null)
/*if(conn != null)
{
conn.close();
}
conn = null;*/
//Added by sarita on 13-11-2017[start]
if(conn != null)
{
conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception d)
{
d.printStackTrace();
......
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