Commit c3c99c6a authored by ssurve's avatar ssurve

conn autoCommit commented. rollback added in exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96544 ce508802-f39f-4f6c-b175-0d175dae99d5
parent abcfdfad
...@@ -46,7 +46,7 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave ...@@ -46,7 +46,7 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave
double grossWeight = 0 ,tareWeight = 0 , netWeight = 0; double grossWeight = 0 ,tareWeight = 0 , netWeight = 0;
try try
{ {
conn.setAutoCommit(false); //conn.setAutoCommit(false); // commented on 7-Oct-2014 as not needed for framework conn Sandesh
sql = "update distord_issdet set " sql = "update distord_issdet set "
...@@ -128,6 +128,12 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave ...@@ -128,6 +128,12 @@ public class DissIssuePosSave extends ValidatorEJB implements DissIssuePosSave
} }
catch(Exception e) catch(Exception e)
{ {
// rollback code Sandesh 7-Oct-2014
try {
conn.rollback();
} catch (Exception d) {
d.printStackTrace();
}
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
} }
......
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