Commit 7f00847d authored by ssalve's avatar ssalve

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

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173478 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f5e55f85
......@@ -835,7 +835,8 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
{
try
{
if(conn != null)
//Commented and Added by sarita on 13NOV2017
/*if(conn != null)
{
if(rs != null)
{
......@@ -849,8 +850,23 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
}
conn.close();
}
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)
{
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