Commit b452e9c0 authored by ssalve's avatar ssalve

Done changes in finally block to close connection & statement on 13-11-2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173470 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4bd0185f
...@@ -1702,7 +1702,8 @@ implements CustomerLocal, CustomerRemote ...@@ -1702,7 +1702,8 @@ implements CustomerLocal, CustomerRemote
{ {
try try
{ {
if (conn != null) //Commented and Added by sarita on 13NOV2017
/*if (conn != null)
{ {
if (rs != null) if (rs != null)
{ {
...@@ -1717,7 +1718,22 @@ implements CustomerLocal, CustomerRemote ...@@ -1717,7 +1718,22 @@ implements CustomerLocal, CustomerRemote
conn.close(); conn.close();
} }
conn = null;*/
if(conn != null)
{
conn.close();
conn = null; conn = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
} catch (Exception d) } catch (Exception d)
{ {
d.printStackTrace(); 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