All Questions

38
votes
7answers
49368 views

How can we share data between the different steps of a Job in Spring Batch?

Digging into Spring Batch, I'd like to know as to How can we share data between the different steps of a Job? Can we use JobRepository for this? If yes, how can we do that? Is there any other way of...
10
votes
3answers
11072 views

Spring batch Job read from multiple sources

How can I read items from multiples databases? I already know that is possible from files. the following example works for read from multiples files ... <job id="readMultiFileJob" xmlns="http://ww...
19
votes
3answers
12167 views

Use of multiple DataSources in Spring Batch

I am trying to configure a couple of datasources within Spring Batch. On startup, Spring Batch is throwing the following exception: To use the default BatchConfigurer the context must contain no mo...
43
votes
6answers
68829 views

How to get access to job parameters from ItemReader, in Spring Batch?

This is part of my job.xml: <job id="foo" job-repository="job-repository"> <step id="bar"> <tasklet transaction-manager="transaction-manager"> <chunk commit-interval=...
12
votes
5answers
36902 views

Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/batch]

Situation I am using Spring Batch to build an Accumulative Snapshot for our Data Warehouse and I am having a configuration roadblock that I cannot figure out. I have created a Simple Spring Batch Pr...
8
votes
1answers
7193 views

Difference between spring batch remote chunking and remote partitioning

What is the difference between spring batch remote chunking and remote partitioning? I can not understand the difference between remote chunking and remote partitioning in spring batch. Could anybody...
1
votes
1answers
1550 views

Spring Batch - Looping a reader/processor/writer step

ANSWER Based on the accepted answer code the following adjustment to that code worked for me: // helper method to create a split flow out of a List of steps private static Flow createParallelFlow(Li...
2
votes
2answers
3924 views

Get current resource name using MultiResourceItemReader Spring batch

I am using MultiResourceItemReader in Spring Batch for reading multiple XML files and I want to get current resource.Here is my configuration: public class MultiFileResourcePartitioner extends MultiR...
18
votes
2answers
57422 views

Storing in JobExecutionContext from tasklet and accessing in another tasklet

I have a requirement in which a tasklet, stores all the files in the directories in an arraylist. The size of the list is stored in the job execution context. Later this count is accessed from another...
15
votes
1answers
11542 views

Spring-batch @BeforeStep does not work with @StepScope

I'm using Spring Batch version 2.2.4.RELEASE I tried to write a simple example with stateful ItemReader, ItemProcessor and ItemWriter beans. public class StatefulItemReader implements ItemReader<S...

Previous Next