Commit 2fe49a57 authored by dpawar's avatar dpawar

close result set data and pstmt


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94622 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a1523418
......@@ -23,7 +23,7 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
System.out.println("--------------confirm method of StockValAdjTranConf ------------- : "+tranId);
System.out.println("--------------confirm method of StockValAdjTranConf1212------------- : "+tranId);
String retString = "";
try
{
......@@ -105,7 +105,7 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
while(rs.next()){
System.out.println(">>>>>>> 143");
System.out.println(">>>>>>> in while loop");
siteCode=checkNull(rs.getString(1));
PriceListRate=rs.getDouble(2);
itemCode=checkNull(rs.getString(3));
......@@ -163,6 +163,16 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
}
//Changes by Dadaso pawar on 18-04-14- START
if(rs!=null){
rs.close();
rs=null;
}
if(pstmt!=null){
pstmt.close();
pstmt=null;
}
//Changes by Dadaso pawar on 18-04-14- END
conn.commit();
......
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