ExecutionContext « Exception « Spring Q&A





1. ExecutionContext deserialization question    forum.springsource.org

if (!jobExecution.getStepExecutions().isEmpty()) { final StepExecution stepExecution = jobExplorer.getStepExecution(Long.valueOf(jobExecutionId), jobExecution.getStepExecutions().iterator().next().getId()); }

2. storing data in ExecutionContext    forum.springsource.org

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 ...

4. ExecutionContext and Statistics    forum.springsource.org

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 ...

5. In-memory repository and ExecutionContext    forum.springsource.org

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); ...

6. ExecutionContext is missing in Listeners    forum.springsource.org

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 ...

7. ExecutionContext is empty after restart    forum.springsource.org

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). ...

8. Removing items from the ExecutionContext    forum.springsource.org

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 ...

9. How to get ExecutionContext?    forum.springsource.org

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 ...





10. Retrieving ExecutionContext    forum.springsource.org

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 ...

11. ExecutionContext serialization in JdbcExecutionContextDao    forum.springsource.org

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 ...

12. ExecutionContext    forum.springsource.org

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 ...

13. JobExplorer and ExecutionContext    forum.springsource.org

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 ...

14. Setting ExecutionContext Before Launch    forum.springsource.org

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 ...

15. limitations of ExecutionContext    forum.springsource.org

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 ...

16. ExecutionContext saved when Step failed    forum.springsource.org

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 ...





17. How to read ExecutionContext inside a step.    forum.springsource.org

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 ...