Commit 17a0fd4c authored by ssalve's avatar ssalve

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

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173475 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 12582e38
...@@ -808,6 +808,12 @@ public class StockTransferEJB extends ValidatorEJB implements StockTransferEJBRe ...@@ -808,6 +808,12 @@ public class StockTransferEJB extends ValidatorEJB implements StockTransferEJBRe
{ {
try try
{ {
//Commented and added by sarita on 13NOV2017
if(conn != null)
{
conn.close();
conn = null;
}
if (rs != null) if (rs != null)
{ {
rs.close(); rs.close();
...@@ -818,10 +824,10 @@ public class StockTransferEJB extends ValidatorEJB implements StockTransferEJBRe ...@@ -818,10 +824,10 @@ public class StockTransferEJB extends ValidatorEJB implements StockTransferEJBRe
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if( conn != null && ! conn.isClosed() ) /*if( conn != null && ! conn.isClosed() )
{ {
conn.close(); conn.close();
} }*/
} }
catch(Exception e) catch(Exception e)
{ {
......
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