FIX: Now that TransactionUtil.doNewTransaction is fixed to actually

work, back out the incorrect fix done in 1343088.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adam Heath
2012-05-29 03:55:11 +00:00
parent 1ba97a3210
commit eb4695bb96
@@ -5601,9 +5601,7 @@ public class OrderServices {
}
final EntityCondition cond = EntityCondition.makeCondition(orderCondList);
List<String> orderIds;
boolean beganTransaction = false;
try {
beganTransaction = TransactionUtil.begin();
orderIds = TransactionUtil.doNewTransaction(new Callable<List<String>>() {
public List<String> call() throws Exception {
List<String> orderIds = new LinkedList<String>();
@@ -5624,18 +5622,7 @@ public class OrderServices {
}, "getSalesOrderIds", 0, true);
} catch (GenericEntityException e) {
Debug.logError(e, module);
try {
TransactionUtil.rollback(beganTransaction, e.getMessage(), e);
} catch (GenericTransactionException e2) {
Debug.logError(e2, "Unable to rollback transaction", module);
}
return ServiceUtil.returnError(e.getMessage());
} finally {
try {
TransactionUtil.commit(beganTransaction);
} catch (GenericTransactionException e) {
Debug.logError(e, "Unable to commit transaction", module);
}
}
for (String orderId: orderIds) {