Commit 482386ca authored by pdas's avatar pdas

CHANGES MADE FOR CONNECTION COMMIT AND ROLLBACK IN PORDER AND POAMDPOSTSAVE


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99449 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 49076c7b
...@@ -135,16 +135,16 @@ public class POrderAmdPostSave extends ValidatorEJB implements ...@@ -135,16 +135,16 @@ public class POrderAmdPostSave extends ValidatorEJB implements
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
if (count > 0) /*if (count > 0)
{ {
conn.commit(); conn.commit();
} }*/
} }
else /*else
{ {
conn.rollback(); conn.rollback();
} }*/
} }
catch (Exception e) catch (Exception e)
{ {
......
...@@ -176,16 +176,16 @@ public class POrderPostSave extends ValidatorEJB implements POrderPostSaveLocal, ...@@ -176,16 +176,16 @@ public class POrderPostSave extends ValidatorEJB implements POrderPostSaveLocal,
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
} }
if(count >0 ){ /*if(count >0 ){
conn.commit(); conn.commit();
} }*/
} }
else{ /*else{
conn.rollback(); conn.rollback();
} }*/
} }
catch(Exception e){ catch(Exception e){
System.out.println("Exception : POrderPostSave -->["+e.getMessage()+"]"); System.out.println("Exception : POrderPostSave -->["+e.getMessage()+"]");
......
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