Websphere 7 clustered deployment

*爱你&永不变心* 提交于 2019-12-07 11:15:46

问题


We have a J2EE application as EAR file which is deployed in WAS 7, for making the application availability as high it needs to be deployed in 3 clusters. We have a Quartz Scheduler class whose job is to upload data from one database to another daily at 2:00 am.

Now, the problem is if the ear will be deployed in 3 different nodes for load balancing and high availability, all the 3 ear file will trigger the upload at the same time. How we can handle this. Is it possible to do some configuration in WAS 7 environment. Any help/suggestion would be appreciated.

Thanks


回答1:


You have two possibilities:

  1. The Quartz database backend where all your nodes would connect to the same database that Quartz uses for synchronizing the task running. This can be configured to prevent the task from running on several nodes simultaneously.
  2. EJB 3.x timer. See for instance this example. This however works for ensuring that only member from each of the clusters fire the timer.


来源:https://stackoverflow.com/questions/3766815/websphere-7-clustered-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!