Spring Batch on Clustered environment - Websphere

前端 未结 3 1882
野的像风
野的像风 2021-01-22 10:49

I did set up a spring Batch job, it runs fine on a single JVM. But I need it to be deployed on to a clustered environemnt. I am using spring task scheduler to schedule the job.

3条回答
  •  滥情空心
    2021-01-22 11:23

    Two suggestions:

    1. Quartz setup in the DB
    2. Hazelcast via Apache Camel Idempotent repository

    Both of these approaches will ensure your task is getting picked up just once.

    The first approach requires the (tedious) Quartz DB setup but then you can connect your unclustered Websphere webapps directly.

    The second approach doesn't require persistent store and via the Apache Camel wrapper makes the setup a breeze.

提交回复
热议问题