Quartz 独立客户端在 Weblogic Server 启动时运行作业两次
我从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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 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.