Commit 9331f05d authored by jshinde's avatar jshinde

add finally block and close the connection


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ee695492
...@@ -270,6 +270,29 @@ etc ...@@ -270,6 +270,29 @@ etc
errString = genericUtility.createErrorString(e); errString = genericUtility.createErrorString(e);
} }
//Changed by Jagruti Shinde on 04-08-2016 to add finally block and close the connection [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
//Changed by Jagruti Shinde on 04-08-2016 to add finally block and close the connection [End]
return valueXmlString.toString(); return valueXmlString.toString();
} }
......
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