• <bdo id='kf4wy'></bdo><ul id='kf4wy'></ul>

    1. <small id='kf4wy'></small><noframes id='kf4wy'>

      <legend id='kf4wy'><style id='kf4wy'><dir id='kf4wy'><q id='kf4wy'></q></dir></style></legend>
      <tfoot id='kf4wy'></tfoot>

    2. <i id='kf4wy'><tr id='kf4wy'><dt id='kf4wy'><q id='kf4wy'><span id='kf4wy'><b id='kf4wy'><form id='kf4wy'><ins id='kf4wy'></ins><ul id='kf4wy'></ul><sub id='kf4wy'></sub></form><legend id='kf4wy'></legend><bdo id='kf4wy'><pre id='kf4wy'><center id='kf4wy'></center></pre></bdo></b><th id='kf4wy'></th></span></q></dt></tr></i><div id='kf4wy'><tfoot id='kf4wy'></tfoot><dl id='kf4wy'><fieldset id='kf4wy'></fieldset></dl></div>

      JavaQuartz 作业持久化

      JavaQuartz Job persistence(JavaQuartz 作业持久化)
      <i id='OvBdn'><tr id='OvBdn'><dt id='OvBdn'><q id='OvBdn'><span id='OvBdn'><b id='OvBdn'><form id='OvBdn'><ins id='OvBdn'></ins><ul id='OvBdn'></ul><sub id='OvBdn'></sub></form><legend id='OvBdn'></legend><bdo id='OvBdn'><pre id='OvBdn'><center id='OvBdn'></center></pre></bdo></b><th id='OvBdn'></th></span></q></dt></tr></i><div id='OvBdn'><tfoot id='OvBdn'></tfoot><dl id='OvBdn'><fieldset id='OvBdn'></fieldset></dl></div>
      • <bdo id='OvBdn'></bdo><ul id='OvBdn'></ul>

        1. <legend id='OvBdn'><style id='OvBdn'><dir id='OvBdn'><q id='OvBdn'></q></dir></style></legend>

          <small id='OvBdn'></small><noframes id='OvBdn'>

            <tbody id='OvBdn'></tbody>

                <tfoot id='OvBdn'></tfoot>
              • 本文介绍了JavaQuartz 作业持久化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                I am not much familiar with Java Quartz, we just used a test job thats scheduled daily. For our Struts2 webapplication, we want to run a few daily jobs that are scheduled at different times of the day. The jobs should be in persistence state such that even if the jobs fails due to server down/application failed, they should re-execute later when server is up. Also can i store the status/results of the jobs in DB, so as to monitor the jobs. Any suggestions would be helpful.

                -- Thanks

                解决方案

                Whatever you have mentioned is possible in Quartz scheduler and there is already a feature with triggers which we generally call Misfire Instructionsthis is what doc say about it

                Another important property of a Trigger is its "misfire instruction". A misfire occurs if a persistent trigger "misses" its firing time because of the scheduler being shutdown, or because there are no available threads in Quartz's thread pool for executing the job. The different trigger types have different misfire instructions available to them. By default they use a 'smart policy' instruction - which has dynamic behavior based on trigger type and configuration. When the scheduler starts, it searches for any persistent triggers that have misfired, and it then updates each of them based on their individually configured misfire instructions. When you start using Quartz in your own projects, you should make yourself familiar with the misfire instructions that are defined on the given trigger types, and explained in their JavaDoc. More specific information about misfire instructions will be given within the tutorial lessons specific to each trigger type.

                Regarding Job persistence Quartz comes with few build in mechanism and all you need to set JobStore as JDBCJobStore

                I suggest you to go with Quartz scheduler document its quite easy and have lots of tutorial and examples to start with.

                If you are not using Spring in your application there is no need to add extra level of abstraction and dependencies.

                这篇关于JavaQuartz 作业持久化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
                Java CLI UI-design: frameworks or libraries?(Java CLI UI 设计:框架还是库?)
                About the use of Beans.xml configuration file in Spring Framework application(关于Spring Framework应用中Beans.xml配置文件的使用)
                What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?(Spring、Struts、Hibernate、JavaServer Faces、Tapestry 有什么区别?)
                Are there any android application framework like spring?(有没有像spring这样的android应用程序框架?)
                Java Swing based game framework. Any advice?(基于 Java Swing 的游戏框架.有什么建议吗?)
                <legend id='7Dyc6'><style id='7Dyc6'><dir id='7Dyc6'><q id='7Dyc6'></q></dir></style></legend>
                • <bdo id='7Dyc6'></bdo><ul id='7Dyc6'></ul>

                      1. <tfoot id='7Dyc6'></tfoot>
                      2. <small id='7Dyc6'></small><noframes id='7Dyc6'>

                          <tbody id='7Dyc6'></tbody>

                        <i id='7Dyc6'><tr id='7Dyc6'><dt id='7Dyc6'><q id='7Dyc6'><span id='7Dyc6'><b id='7Dyc6'><form id='7Dyc6'><ins id='7Dyc6'></ins><ul id='7Dyc6'></ul><sub id='7Dyc6'></sub></form><legend id='7Dyc6'></legend><bdo id='7Dyc6'><pre id='7Dyc6'><center id='7Dyc6'></center></pre></bdo></b><th id='7Dyc6'></th></span></q></dt></tr></i><div id='7Dyc6'><tfoot id='7Dyc6'></tfoot><dl id='7Dyc6'><fieldset id='7Dyc6'></fieldset></dl></div>