如何确保停止的Weblogic队列不启动服务器重新启动?
我正在使用EJB,MDB和使用WebLogic服务器的传统Java应用程序。我们的处理逻辑嵌入了队列中。但是,当出现问题时,我们已经提供了从网页无限期停止队列的能力。解决问题后,可以恢复队列。
现在出现了问题,如果服务器有意关闭时,服务器重新启动。当服务器重新启动时,队列开始备份并继续处理处理逻辑,即使尚未固定。谁能建议如何处理?即使服务器重新启动,我也希望停止的队列保持停止。
I am working with a traditional java application with ejbs, MDBs and using weblogic server. Our processing logic is embedded in queues. However, when something goes wrong, we have provided ability from a webpage to stop a queue indefinitely. The queue can be resumed once the issues are resolved.
Now the issue arises, if the server restarts while the queue was intentionally turned off. When the server restarts, the queue starts back up and continues with the processing logic even though its not fixed yet. Can anyone suggest how to deal with this ? I would want a stopped queue to remain stopped even if the server restarts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过拥有一个单身人士EJB来解决此问题,该单元EJB跟踪了队列应该在...
修改的代码中始终在维护窗口末尾检查此EJB的状态
solved this issue by having a singleton ejb that keeps track of what state the queue is supposed to be in...
modified code to always check this ejb at the end of the maintenance window