Can I use Quartz Scheduler 1.8.6 using the latest Spring Batch?










0















I have a requirement to use Quartz Scheduler v1.8.6 with a recent version of Spring Batch. There are legacy batch jobs that use Quartz Scheduler v1.8.6 but currently not Spring Batch.



I was able to get a simple Spring Batch job scheduled and running using Quartz Scheduler v1.8.6 with the latest Spring Batch v4.1.0 but had to add a dependency in my pom.xml to use an old version of spring-context-support v3.2.18.RELEASE. The spring-context-support provides the bridge to Quartz and v3.2.18.RELEASE was the latest version that will schedule and run a simple job in my test code.



  1. Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?

  2. Is using an old spring-context-support in this way a completely incorrect approach?

  3. Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.









share|improve this question


























    0















    I have a requirement to use Quartz Scheduler v1.8.6 with a recent version of Spring Batch. There are legacy batch jobs that use Quartz Scheduler v1.8.6 but currently not Spring Batch.



    I was able to get a simple Spring Batch job scheduled and running using Quartz Scheduler v1.8.6 with the latest Spring Batch v4.1.0 but had to add a dependency in my pom.xml to use an old version of spring-context-support v3.2.18.RELEASE. The spring-context-support provides the bridge to Quartz and v3.2.18.RELEASE was the latest version that will schedule and run a simple job in my test code.



    1. Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?

    2. Is using an old spring-context-support in this way a completely incorrect approach?

    3. Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.









    share|improve this question
























      0












      0








      0








      I have a requirement to use Quartz Scheduler v1.8.6 with a recent version of Spring Batch. There are legacy batch jobs that use Quartz Scheduler v1.8.6 but currently not Spring Batch.



      I was able to get a simple Spring Batch job scheduled and running using Quartz Scheduler v1.8.6 with the latest Spring Batch v4.1.0 but had to add a dependency in my pom.xml to use an old version of spring-context-support v3.2.18.RELEASE. The spring-context-support provides the bridge to Quartz and v3.2.18.RELEASE was the latest version that will schedule and run a simple job in my test code.



      1. Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?

      2. Is using an old spring-context-support in this way a completely incorrect approach?

      3. Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.









      share|improve this question














      I have a requirement to use Quartz Scheduler v1.8.6 with a recent version of Spring Batch. There are legacy batch jobs that use Quartz Scheduler v1.8.6 but currently not Spring Batch.



      I was able to get a simple Spring Batch job scheduled and running using Quartz Scheduler v1.8.6 with the latest Spring Batch v4.1.0 but had to add a dependency in my pom.xml to use an old version of spring-context-support v3.2.18.RELEASE. The spring-context-support provides the bridge to Quartz and v3.2.18.RELEASE was the latest version that will schedule and run a simple job in my test code.



      1. Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?

      2. Is using an old spring-context-support in this way a completely incorrect approach?

      3. Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.






      spring spring-batch quartz-scheduler






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 15:13









      JohnJohn

      31




      31






















          1 Answer
          1






          active

          oldest

          votes


















          0















          Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?




          You can check the version of quartz in the build.gradle file of the Spring Batch version you use. For Spring batch 4.1.0, you can use quartz 2.3.0.



          If you use Spring Boot, you can check start.spring.io/actuator/info to get information about spring project versions that are known to work best together when imported via Spring Boot. For example, if you generate a project with start.spring.io using Spring Boot version 2.1.0 and add spring-boot-starter-batch and spring-boot-starter-quartz starters, you will get Spring Batch 4.1.0 and Quartz 2.3.0 in your classpath.




          Is using an old spring-context-support in this way a completely incorrect approach?




          Not incorrect (as long as it works for you) but not recommended.



          • If you do use Spring Boot, you will get the latest spring-context version (5.1.2 in the example given above).

          • If you do not use Spring Boot, you can still import the maven BOM provided by Spring Boot and let it import the versions for you. This is better than managing the versions manually.


          Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.




          I don't recommend this. You can stick with v4.1.0 as you managed to get it working as you mentioned. Spring v4.x requires Java 8, so as long as the quartz version you use runs on Java 8, it will be able to schedule Spring Batch jobs.



          Hope this helps.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303331%2fcan-i-use-quartz-scheduler-1-8-6-using-the-latest-spring-batch%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?




            You can check the version of quartz in the build.gradle file of the Spring Batch version you use. For Spring batch 4.1.0, you can use quartz 2.3.0.



            If you use Spring Boot, you can check start.spring.io/actuator/info to get information about spring project versions that are known to work best together when imported via Spring Boot. For example, if you generate a project with start.spring.io using Spring Boot version 2.1.0 and add spring-boot-starter-batch and spring-boot-starter-quartz starters, you will get Spring Batch 4.1.0 and Quartz 2.3.0 in your classpath.




            Is using an old spring-context-support in this way a completely incorrect approach?




            Not incorrect (as long as it works for you) but not recommended.



            • If you do use Spring Boot, you will get the latest spring-context version (5.1.2 in the example given above).

            • If you do not use Spring Boot, you can still import the maven BOM provided by Spring Boot and let it import the versions for you. This is better than managing the versions manually.


            Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.




            I don't recommend this. You can stick with v4.1.0 as you managed to get it working as you mentioned. Spring v4.x requires Java 8, so as long as the quartz version you use runs on Java 8, it will be able to schedule Spring Batch jobs.



            Hope this helps.






            share|improve this answer



























              0















              Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?




              You can check the version of quartz in the build.gradle file of the Spring Batch version you use. For Spring batch 4.1.0, you can use quartz 2.3.0.



              If you use Spring Boot, you can check start.spring.io/actuator/info to get information about spring project versions that are known to work best together when imported via Spring Boot. For example, if you generate a project with start.spring.io using Spring Boot version 2.1.0 and add spring-boot-starter-batch and spring-boot-starter-quartz starters, you will get Spring Batch 4.1.0 and Quartz 2.3.0 in your classpath.




              Is using an old spring-context-support in this way a completely incorrect approach?




              Not incorrect (as long as it works for you) but not recommended.



              • If you do use Spring Boot, you will get the latest spring-context version (5.1.2 in the example given above).

              • If you do not use Spring Boot, you can still import the maven BOM provided by Spring Boot and let it import the versions for you. This is better than managing the versions manually.


              Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.




              I don't recommend this. You can stick with v4.1.0 as you managed to get it working as you mentioned. Spring v4.x requires Java 8, so as long as the quartz version you use runs on Java 8, it will be able to schedule Spring Batch jobs.



              Hope this helps.






              share|improve this answer

























                0












                0








                0








                Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?




                You can check the version of quartz in the build.gradle file of the Spring Batch version you use. For Spring batch 4.1.0, you can use quartz 2.3.0.



                If you use Spring Boot, you can check start.spring.io/actuator/info to get information about spring project versions that are known to work best together when imported via Spring Boot. For example, if you generate a project with start.spring.io using Spring Boot version 2.1.0 and add spring-boot-starter-batch and spring-boot-starter-quartz starters, you will get Spring Batch 4.1.0 and Quartz 2.3.0 in your classpath.




                Is using an old spring-context-support in this way a completely incorrect approach?




                Not incorrect (as long as it works for you) but not recommended.



                • If you do use Spring Boot, you will get the latest spring-context version (5.1.2 in the example given above).

                • If you do not use Spring Boot, you can still import the maven BOM provided by Spring Boot and let it import the versions for you. This is better than managing the versions manually.


                Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.




                I don't recommend this. You can stick with v4.1.0 as you managed to get it working as you mentioned. Spring v4.x requires Java 8, so as long as the quartz version you use runs on Java 8, it will be able to schedule Spring Batch jobs.



                Hope this helps.






                share|improve this answer














                Is there documentation somewhere that lists compatible versions of Spring Batch and Quartz Scheduler?




                You can check the version of quartz in the build.gradle file of the Spring Batch version you use. For Spring batch 4.1.0, you can use quartz 2.3.0.



                If you use Spring Boot, you can check start.spring.io/actuator/info to get information about spring project versions that are known to work best together when imported via Spring Boot. For example, if you generate a project with start.spring.io using Spring Boot version 2.1.0 and add spring-boot-starter-batch and spring-boot-starter-quartz starters, you will get Spring Batch 4.1.0 and Quartz 2.3.0 in your classpath.




                Is using an old spring-context-support in this way a completely incorrect approach?




                Not incorrect (as long as it works for you) but not recommended.



                • If you do use Spring Boot, you will get the latest spring-context version (5.1.2 in the example given above).

                • If you do not use Spring Boot, you can still import the maven BOM provided by Spring Boot and let it import the versions for you. This is better than managing the versions manually.


                Should I use an older version of Spring Batch? I would prefer not to have to do this because the latest Spring Batch seems to have a ton of great features.




                I don't recommend this. You can stick with v4.1.0 as you managed to get it working as you mentioned. Spring v4.x requires Java 8, so as long as the quartz version you use runs on Java 8, it will be able to schedule Spring Batch jobs.



                Hope this helps.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 15 '18 at 14:18









                Mahmoud Ben HassineMahmoud Ben Hassine

                4,5451714




                4,5451714





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303331%2fcan-i-use-quartz-scheduler-1-8-6-using-the-latest-spring-batch%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    Museum of Modern and Contemporary Art of Trento and Rovereto

                    In R, how to develop a multiplot heatmap.2 figure showing key labels successfully