Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:04:53+00:00 2026-06-17T08:04:53+00:00

I have multiple QuartzJobBean in a Spring Framework application. These jobs are scheduled according

  • 0

I have multiple QuartzJobBean in a Spring Framework application. These jobs are scheduled according to their needs. I have a problem like the following.

A job fires every 5 seconds.

Let’s say;

1st execution at 00.00.05
2nd execution at 00.00.10
3rd execution at 00.00.15
.
.
.
etc.

However if 1st execution lasts 6 seconds, 2nd execution comes right after the first execution’s completion. I want to schedule my jobs as the following if it is possible?

1st execution at 00.00.05 (execution time 6 seconds)
2nd execution at 00.00.16 (execution time 3 seconds)
3rd execution at 00.00.24 (execution time x seconds)
4th execution at 00.00.24+5+x 
.
.
.
etc.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:04:54+00:00Added an answer on June 17, 2026 at 8:04 am

    I ended up extending QuartzJobBean and also implementing StatefulJob. As trigger I used SimpleTriggerBean with repeatInterval property xxxx milliseconds.

    MyJob class

    public class MyJob extends QuartzJobBean implements StatefulJob
    

    springcontext

    <bean id="myJobTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
        <property name="jobDetail" ref="myJob"/>
        <property name="startDelay" value="0" />
        <property name="repeatInterval" value="2000" />
    </bean>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple calls to methods in a 3rd party library. These methods have
I have multiple folders that look like folder.0 and folder.1 . Inside each folder
I have multiple apps that use a shared set of files. I would like
I have multiple web services that write data inside a database table. I'd like
I have multiple services in my application. WebService1, WebService2,WebService3 and so on.. All the
I have multiple business objects in my application (C#, Winforms, WinXP). When the user
I have multiple instances of the same application running. The user ask can click
I have multiple classes with many associations linking them together and I would like
I have multiple (between 40 and 50) MP3 files that I'd like to concatenate
I have multiple forms in a web application that have buttons which are currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.