Spring Batch on Clustered environment - Websphere

前端 未结 3 1922
野的像风
野的像风 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:34

    I have finally got it working with EJB persistent timers launching the spring batch job. The transaction type for those EJB timers have defined as Bean Transaction, so it is not container managed. The Websphere scheduler takes care of the clustering with EJB timers. So the spring batch job gets kicked off on only one server at a time.

提交回复
热议问题