Commit f5e55f85 authored by ssalve's avatar ssalve

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

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173477 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9f45867d
...@@ -527,7 +527,8 @@ public class TaxIC extends ValidatorEJB implements TaxICLocal, TaxICRemote ...@@ -527,7 +527,8 @@ public class TaxIC extends ValidatorEJB implements TaxICLocal, TaxICRemote
{ {
try try
{ {
if(conn != null) //Commented and Added by sarita on 13NOV2017
/*if(conn != null)
{ {
if(rs != null) if(rs != null)
{ {
...@@ -541,7 +542,22 @@ public class TaxIC extends ValidatorEJB implements TaxICLocal, TaxICRemote ...@@ -541,7 +542,22 @@ public class TaxIC extends ValidatorEJB implements TaxICLocal, TaxICRemote
} }
conn.close(); conn.close();
} }
conn = null; conn = null;*/
if(conn != null)
{
conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = 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