IN PROGRESS - BATCH-518: clean up the *Or* repository methods

saveOrUpdate(StepExecution) split to save and update
This commit is contained in:
robokaso
2008-07-28 10:56:35 +00:00
parent da3eb280c0
commit e9d2d90764
10 changed files with 66 additions and 46 deletions

View File

@@ -111,7 +111,7 @@ public class MessageOrientedStep extends AbstractStep {
else {
executionContext.putString(WAITING, "true");
// TODO: need these two lines to be atomic
getJobRepository().saveOrUpdate(stepExecution);
getJobRepository().update(stepExecution);
requestChannel.send(new GenericMessage<JobExecutionRequest>(request));
waitForReply(request.getJobId());
}