Spring Batch Failover Example

Prerequisites

  • Java 17 or higher

Trigger

ClearJob

curl 'localhost:8080/clear-job?param=abc'

ChunkListenerJob

curl 'localhost:8080/chunk-listener-job?param=abc'

WriteListenerJob

curl 'localhost:8080/write-listener-job?param=abc'

ExceptionHandlerJob

curl 'localhost:8080/exception-handler-job?param=abc'

ContextJob

curl 'localhost:8080/context-job?param=abc'

RetryJob

curl 'localhost:8080/retry-job?param=abc'

SkipJob

curl 'localhost:8080/skip-job?param=abc'

Show DB

http://localhost:8080/h2-console

  • jdbc url : "jdbc:h2:mem:testdb"
  • user : "sa"
  • pw : ""