Commit ad3310f7 authored by prane's avatar prane

cusrsor and statement closed and nulled for multitenancy

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195776 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3a26f3a0
...@@ -359,7 +359,10 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P ...@@ -359,7 +359,10 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
System.out.println(DetMap.toString()); System.out.println(DetMap.toString());
} }
rs.close();//[rs and pstmt closed and nulled by Pavan R]
rs = null;
pstmt.close();
pstmt = null;
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME )) if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ))
{ {
sql1 = "SELECT tran_id FROM pay_ibca WHERE tran_id = ? for update "; sql1 = "SELECT tran_id FROM pay_ibca WHERE tran_id = ? for update ";
...@@ -404,7 +407,10 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P ...@@ -404,7 +407,10 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
errCode = itmDBAccessEJB.getErrorString("","VTSEQ ","","",conn); errCode = itmDBAccessEJB.getErrorString("","VTSEQ ","","",conn);
} }
rs.close();//[rs and pstmt closed and nulled by Pavan R]
rs = null;
pstmt.close();
pstmt = null;
if("Y".equalsIgnoreCase(ledgPostConf)) if("Y".equalsIgnoreCase(ledgPostConf))
{ {
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
...@@ -414,6 +420,8 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P ...@@ -414,6 +420,8 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
pstmt.setTimestamp(1,tranDate); pstmt.setTimestamp(1,tranDate);
pstmt.setString(2,tranId); pstmt.setString(2,tranId);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close();//[pstmt closed and nulled by Pavan R]
pstmt = null;
} }
errCode = gbfPostPibca(HdrMap,DetList,xtraParams,conn); errCode = gbfPostPibca(HdrMap,DetList,xtraParams,conn);
......
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