You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Christian Berger (Jira)" <ji...@apache.org> on 2020/04/19 19:52:00 UTC
[jira] [Created] (BATCHEE-140) Propagate JobOperatorImpl instance
to SimpleJobExecutionCallbackService properly
Christian Berger created BATCHEE-140:
----------------------------------------
Summary: Propagate JobOperatorImpl instance to SimpleJobExecutionCallbackService properly
Key: BATCHEE-140
URL: https://issues.apache.org/jira/browse/BATCHEE-140
Project: BatchEE
Issue Type: Bug
Components: jbatch-core
Affects Versions: 0.5-incubating
Reporter: Christian Berger
While testing my code I've figured out that passing an individual {{JobOperatorImpl}} instance is not working as expected when using this code snippet:
{code:java}
final JobOperator operator = new JobOperatorImpl(new ServicesManager() {{
init(new Properties() {{
setProperty(PersistenceManagerService.class.getSimpleName(), MemoryPersistenceManagerService.class.getName());
}});
}});
{code}
I'm going to implement a fix as suggested by [~rmannibucau] :
{noformat}
@chberger
yes,
org.apache.batchee.container.services.callback.SimpleJobExecutionCallbackService#checkIsDone
must change to use the right joboperator if the joboperator is a
JobOperatorImpl. Guess it is just a matter of propagating it at
org.apache.batchee.util.Batches#waitFor(javax.batch.operations.JobOperator,
long){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)