如何在Websphere 6.1集群环境中运行计划任务
我想在 Websphere 6.1 集群环境上部署的 Web 应用程序中每隔一段时间运行一次后台任务。该任务将访问数据库、发送电子邮件并写入数据库。
我正在考虑在首次加载网络应用程序时启动一个线程,如下所示: Tomcat servlet 应用程序的后台线程。
由于它是集群环境,那么不在集群的每个单独节点上运行任务的最佳方法是什么?
I would like to run a background task on some interval from a web application I have deployed on Websphere 6.1 clustered environment. The task will access a database, send emails, and write to the database.
I was thinking about kicking off a thread when the web app is first loaded, as suggested here: Background Thread for a Tomcat servlet app.
Since it is a clustered environment, what would be the best way to NOT have task run on each individual node of the cluster?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 WAS 调度服务。
它谈到集群环境:
Have a look at the WAS Scheduler service.
It says of clustered environments: