Hi Marten,
Looking at the FlowJob I am still not sure if it is thread safe to call the FlowJob twice. I have set the ItemReader to step-scope and I can now see the output from both files when I...
Type: Posts; User: Jim Collins; Keyword(s):
Hi Marten,
Looking at the FlowJob I am still not sure if it is thread safe to call the FlowJob twice. I have set the ItemReader to step-scope and I can now see the output from both files when I...
Thanks Marten. I was looking at changing the scope of the Job to prototype but will try step-scope. I missed that in the docs :)
Hi,
I want to be able to run the same batch definition concurrently with different input files. I have a number of folders that I monitor and each time for every file I find I create a new...
You can use Quartz. You can set it up so that it will not start the new batch until the previous one has finished.
Hi,
Look at JdbcCursorItemReader. You want to do something similar to this instead of connecting to a database though you will be getting the resultset from the WebService you call.
Regards
...
I should have looked at the samples before posting :)
This can be achieved using batch:decision.
Hi,
Looking at the docs you need to ensure that transactional resources are not rolled back when you throw the exception in the ItemWriter.
Regards
Jim
The rollback can cause onSkipInRead to be called multiple times.
Could that be the reason?
Regards
Jim
One other thing at the start of the Job I will be adding an Object to the Job execution context that contains all the dynamic properties of the batch. This will include a list of the files to be...
Hi,
I am trying to program a dynamic batch that processes flat files. The delimeters and columns are retrieved from a database. Also the number of files in a batch is also dynamic.
What I...
Thanks Michael.
Hi,
I am updating a batch application that I want to port Spring Batch. At the moment when a file is processed the required fields in the file and the location of the files are downloaded from a...
Hi I have a bit of a chicken and egg scenario here. I am using Spring Batch and have a Tasklet that runs some SQL that is passed in as a property. One of the properties of the Tasklet is some SQL I...
I am using the marshaller and unmarshaller. I tried to set the useAttributeFor property on XStreamMarshaller using the same mechanism as you do for setting the aliases. This did not work for me and I...
Hi Dave. Do you have any examples of using attributeAlias? I am trying to do the same thing.
Thanks
Jim