if (!jobExecution.getStepExecutions().isEmpty()) { final StepExecution stepExecution = jobExplorer.getStepExecution(Long.valueOf(jobExecutionId), jobExecution.getStepExecutions().iterator().next().getId()); } |
hi all i am relatively n ew to spring batch. I have to perform following operations: - read data from database (will be a collection of object) - filter data accordign ... |
|
Hi, In m3version, to create new statistics, my classes implemented interface StatisticProvider and the getStatistics() method. Now, in m5, I have seen that statistics are strored in ExecutionContext. I don't now ... |
In-memory repository and ExecutionContext Hello, We are trying to pass some simple parameters from one Job to another. Code looks like this: ctx.putLong(CLAIM_ID, currentClaim.getId()); System.out.println("Claim id in exn ctx "+se.getExecutionContext().getLong(CLAIM_ID)); se.setExecutionContext(ctx); ... |
ExecutionContext is missing in Listeners In some Listener class, such as ItemReadListener / ItemWriteListener / ItemRecoverer, it lacks of passing in of context variable to the listener's method. My use case ... |
I having trouble restarting a Job. On restart the, in my itemReader, the call Code: executionContext.containsKey(getKey(LINES_READ_COUNT)) turns up to be empty. The table BATCH_STEP_EXECUTION contains a row with an item_count (2). ... |
|
Removing items from the ExecutionContext Hello, I am using the ExecutionContext for 2 purposes: 1) Storing values for restarting a tasklet step 2) Storing job output (I simply add MSG[xxxx] messages ... |
I'm trying to expand on a simple batch job example from: http://java.dzone.com/news/spring-batch-hello-world-1 and I'm a bit lost... how would I expand this to write ExecutionContext information to the BATCH_EXECUTION_CONTEXT table? Do ... |
Hi, I have question about retrieving ExecutionContext. If some job is successfully finished (of failed does not matter) and after that following code is executed: Code: JobRepository jobRepository = (JobRepository) applicationContext ... |
ExecutionContext serialization in JdbcExecutionContextDao Hello, I'm using 2.0.0 M4. When JdbcExecutionContextDao tries to serialize the execution context a ClassCastException occurs within jettison. After some careful consideration I realized I'd be happier ... |
Hi, How can I get the access to ExecutionContext in my FieldSetMapper. I need to save meta data in Executioncontext and make use of it in FieldSetMapper. How Could I do ... |
JobExplorer and ExecutionContext I've been lurking around for so long with this forum trying to figure things out through other people's problems and solutions posted for it... Unfortunately, I have come ... |
Hello, Quick question... What is the best way to set a job's execution context before using a launcher to launch a job? Before I go and extend JobLauncher, I'd like to ... |
limitations of ExecutionContext Hi guys, I am busy with a POC to see if Spring Batch is a suitable option. We are implementing a Siebel ebilling system that requires two input ... |
ExecutionContext saved when Step failed Hi, I'm not clear about if the data stored in a step should be persisted to the database if a step fails. Now we use a ... |
I wonder why there is no way to read ExecutionContext inside a step. There are only two method afterStep and beforeStep where we can have that. But I need that at ... |