Hi All,
This might not be a question purely related to Spring Batch, but thought if someone could help me out
I have a table with about hunderd thousand rows and and each row having about 80...
Type: Posts; User: rohitmohta87; Keyword(s):
Hi All,
This might not be a question purely related to Spring Batch, but thought if someone could help me out
I have a table with about hunderd thousand rows and and each row having about 80...
Is it?? hmmm... Possible to share the snippet of config? cause I was not able to get old of stepexecutionlistener when scope is step
Hi Dave,
I have also face similar issue when the the scope is step. The beforeStep() is not even called during intialization.
Make the ItemWriter class implement StepExecutionListener interface. There you will have 2 methods : beforeStep() and afterStep(). In before step, store the reference of StepExecutionListener in the...
When starting job with OSGI bundle, can you check if the file "ApplicationContext.xml" is in the classpath? the name here is same as in your classpath?
Thanks for the explanation on FlatFileItemWriter :-)
My Usecase, in simple layman's language is this (this is the current scenario)
FlatFileItemReader : Read data from multiple files
...
Did you try splitting the job in multiple steps, where first step is chunk processing and the second step is a tasklet whose only job is to insert data into Database.
So, how about this?
...
Hi,
I have noticed something. When we define the scope to be step, and that class implements StepExecutionListener, I am unable to store the reference of StepExecutionListener, which is passed in...
In simple words, for Case 2 - if my input has 10 records, my output file will have 12 records. Additional two being, whether success or failure and if failure what is the reason.
Validation of...
Hi Dave,
Yes, I am using MultiResoureItemReader, to pass [] of resource.
For the 2nd part, the input what I will be getting from file will have to be inserted in database. There are some...
Hi,
I had gone through the Composite ItemWriter, and it looks like the implementation of Composite ItemWriter is totally dependent on the chain which makes it Composite.
My use case is : Read...
So throwing a RuntimeException would be the only option?
And do you have any idea, if completion-policy would help me in calling my item reader, as long as there is no more data to be read?
Adding to that, in the ItemProcessor class I am setting the TerminateOnly() flag. And in ItemWriter, checking for the flag. If ON, then exiting the class.
Hi All,
I have a csv file, which I have to read and update a table. Incase, one of the fields in the csv file is improper - I have to terminate the job and make sure no update from the file takes...