Results 1 to 2 of 2

Thread: Intercepter for Job and Step

  1. #1

    Default Intercepter for Job and Step

    I want to make some job initialization at the beginning of a job, e.g. to calculate system date of transactions to be sent in the job.

    I think it can be done by adding an InterceptorChain at the beginning of job. May I know if Spring Batch currently support it? If yes, how to do it? If not, any plan to support or else workaround?

    Thanks a lot!

  2. #2

    Default

    Check out the classes:
    org.springframework.batch.core.domain.JobListener
    org.springframework.batch.core.domain.StepListener
    org.springframework.batch.core.domain.ItemReadList ener
    org.springframework.batch.core.domain.ItemWriteLis tener

    Additionally individual repeat/retry operations can be intercepted using:
    org.springframework.batch.repeat.RepeatListener
    org.springframework.batch.retry.RetryListener
    (These can also be implemented via AOP using the *Interceptor classes in the org.springframework.batch.repeat.aop and retry.aop packages)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •