Commit f4b283e2 authored by jshaikh's avatar jshaikh

Closed connections and statements in ReceiptDishonour

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198959 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3455b73c
......@@ -167,6 +167,24 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
System.out.println("Rollbacked");
}
}
//Added by Jaffar S for closing connection and statements on 29-03-19 [Start]
if(isLocal)
{
conn.close();
conn = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
//Added by Jaffar S for closing connection and statements on 29-03-19 [End]
}
catch(Exception e)
{
......@@ -782,6 +800,26 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
}
//--Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//--Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
public String gbfPostRcpDishnr(HashMap hdrMap,ArrayList detList,ArrayList acctList,ArrayList advList,String xtraParams,Connection conn) throws ITMException
......@@ -1619,10 +1657,31 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
throw new ITMException(e);
}
finally
/*finally
{
}*/
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
......@@ -2600,7 +2659,25 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
e.printStackTrace();
throw new ITMException(e);
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
......@@ -2798,10 +2875,30 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
e.printStackTrace();
throw new ITMException(e);
}
finally
/*finally
{
}*/
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
......@@ -2963,8 +3060,25 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
e.printStackTrace();
throw new ITMException(e);
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
......@@ -3387,6 +3501,25 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
e.printStackTrace();
throw new ITMException(e);
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [Start]
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e){}
}
//Added by Jaffar S for closing connection and prepared statement on 29-03-19 [End]
return errString;
}
......
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