Announcement Announcement Module
Collapse
No announcement yet.
Intercepter for Job and Step Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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)

    Comment

    Working...
    X