Commit 98e65a1b authored by bpandey's avatar bpandey

changes inside ActionHandlermethod()


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93558 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3ad6b8d9
...@@ -139,6 +139,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -139,6 +139,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
pstmt.setString(2,tranId); pstmt.setString(2,tranId);
upcount =pstmt.executeUpdate(); upcount =pstmt.executeUpdate();
if(upcount>0){ if(upcount>0){
conn.commit();
retString = itmDBAccess.getErrorString("","VTDESHOLD ","","",conn); retString = itmDBAccess.getErrorString("","VTDESHOLD ","","",conn);
} }
...@@ -180,9 +181,13 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -180,9 +181,13 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
{ {
try try
{ {
if(conn!=null)
{
conn.commit();
conn.close(); conn.close();
conn = null; conn = null;
}
if(pstmt != null) if(pstmt != null)
{ {
pstmt.close(); pstmt.close();
......
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