Commit ebb09ab4 authored by mmhatre's avatar mmhatre

Connection closed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216869 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dd52b2d5
......@@ -3265,10 +3265,14 @@ public class DrCrRcpConf extends ActionHandlerEJB implements DrCrInvConfLocal,Dr
pstmt1.setString(4, invoiceID);
pstmt1.setString(5, ""+cnt);
pstmt1.executeUpdate();
if(pstmt!=null)
if(pstmt1!=null)
{
pstmt.close();pstmt = null;
pstmt1.close();pstmt1 = null;
}
/*if(pstmt!=null)
{
pstmt.close();pstmt = null;
}*/
}
//System.out.println("inside diiamount crnrcp33332"+diffAmount+"adjamount--"+crAmount+"transer--"+adjTranSer);
......@@ -3297,10 +3301,14 @@ public class DrCrRcpConf extends ActionHandlerEJB implements DrCrInvConfLocal,Dr
pstmt1.setString(4, invoiceID);
pstmt1.setString(5, ""+cnt);
pstmt1.executeUpdate();
if(pstmt!=null)
if(pstmt1!=null)
{
pstmt.close();pstmt = null;
pstmt1.close();pstmt1 = null;
}
/*if(pstmt!=null)
{
pstmt.close();pstmt = null;
}*/
}
}
if(pstmt != null)
......
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