Commit 9bb019fe authored by ngadkari's avatar ngadkari

closing of open connections

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@199106 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e0634768
......@@ -490,18 +490,19 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
return errString;
}
pstmt1.clearParameters();
pstmt1.close();
pstmt1= null;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(pstmt1!=null)
/*if(pstmt1!=null)
{
pstmt1.close();
pstmt1= null;
}
}*/
addAcctFrom = "d_rcpacct_brow";
}
else // for receipt only
......@@ -621,7 +622,8 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
pstmt1.setString(11, currCode);
int insacctcnt=pstmt1.executeUpdate();
pstmt1.close();
pstmt1= null;
if (insacctcnt<=0)
{
errorCode = "DS000";
......@@ -702,6 +704,9 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
pstmt1.setString(10, cctrCode);
int insAdv=pstmt1.executeUpdate();
pstmt1.clearParameters();
pstmt1.close();
pstmt1 = null;
if (insAdv<=0)
{
......@@ -711,8 +716,12 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
//conn.rollback();
//return errorCode;
}
pstmt1.clearParameters();
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
......@@ -898,6 +907,8 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
pstmt.setString(2,login_emp_code);
pstmt.setString(3,ls_tranid);
int updconf=pstmt.executeUpdate();
pstmt.close();
pstmt = null;
if(updconf <=0)
{
errorCode = "DS000";
......
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