|
|
Passing Data to Future Steps (and recovering from a failed step)
Regarding the BATCH_STEP_EXECUTION_CONTEXT table,
What this the difference between the SHORT_CONTEXT field and the SERIALIZED_CONTEXT field?
I have a job with 2 steps. In both steps I am using the following at the beginning of the reader step after the database read:
ExecutionContext exCtx = stepExecution.getExecutionContext(); exCtx.put(quot;somekeyquot;, someRecordsList);
Reason I ask is that for one step in this job, both these fields are populated and for another step I see that only the SHORT_CONTEXT field is populated after the job completes.
The code for this is identical in both steps and taken right from the book.
The stepExecution is taken from the @BeforeStep method.
Both steps are configured with an ExecutionContextPromotionListener and all the data from both steps appears in the BATCH_JOB_EXECUTION_CONTEXT table.
Might it something to do with the size of the Map?
Thanks,
TonyThanks in advance,
Tony |
|