Quartz 独立客户端在 Weblogic Server 启动时运行作业两次

发布于 2024-11-13 10:25:04 字数 135 浏览 1 评论 0原文

我从quartz 1.6 下载包中提供的示例中获取了一个简单的独立客户端示例来运行作业。但在 weblogic 服务器启动时,作业运行了两次。是否有任何设置或需要在服务器启动时仅运行一次作业?如果任何代码片段或外部链接都会有很大帮助。

谢谢

I have taken a simple standalone client example from examples provided in quartz 1.6 download bundle to run a job. But at the start up of the weblogic server, job is running twice. Is there any settings or something required to run the job only once at the start-up of the server? If any code snippet or external link will be much helpful.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南风几经秋 2024-11-20 10:25:04

我在 tomcat 中也遇到了类似的问题。就我而言,我将应用程序绑定到根路径和 /appName 路径。例如,app1.jar 绑定到 / 和 /app1 路径。结果应用程序在服务器中初始化了两次,因此石英被触发了两次。

I had similar issue in tomcat. In my case I had my application bound to root path and to /appName path. So for instance there was app1.jar which was bound to / and to /app1 paths. As a result app was initialized twice in the server and hence quartz was triggered twice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文