Search:

Type: Posts; User: rohitmohta87; Keyword(s):

Search: Search took 0.02 seconds.

  1. Database ItemReaders - which one better?

    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...
  2. Is it?? hmmm... Possible to share the snippet of...

    Is it?? hmmm... Possible to share the snippet of config? cause I was not able to get old of stepexecutionlistener when scope is step
  3. Hi Dave, I have also face similar issue when...

    Hi Dave,

    I have also face similar issue when the the scope is step. The beforeStep() is not even called during intialization.
  4. Make the ItemWriter class implement...

    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...
  5. Replies
    3
    Views
    1,005

    When starting job with OSGI bundle, can you check...

    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?
  6. Replies
    5
    Views
    1,633

    Thanks for the explanation on FlatFileItemWriter...

    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
    ...
  7. Did you try splitting the job in multiple steps,...

    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?


    ...
  8. StepExecutionListener when the scope is STEP

    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...
  9. Replies
    5
    Views
    1,633

    In simple words, for Case 2 - if my input has 10...

    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...
  10. Replies
    5
    Views
    1,633

    Hi Dave, Yes, I am using...

    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...
  11. Replies
    5
    Views
    1,633

    Composite ItemWriter

    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...
  12. So throwing a RuntimeException would be the only...

    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?
  13. Adding to that, in the ItemProcessor class I am...

    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.
  14. Stop a Job during Chunk Processing - Within the program

    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...
Results 1 to 14 of 14