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 7901939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:21:50+00:00 2026-06-03T09:21:50+00:00

I need a mechanism for implementing asynchronous job scheduling in Java and was looking

  • 0

I need a mechanism for implementing asynchronous job scheduling in Java and was looking at the Quartz Scheduler, but it seems that it does not offer the necessary functionality.

More specifically, my application, which runs across different nodes, has a web-based UI, via which users schedule several different jobs. When a job is completed (sometime in the future), it should report back to the UI, so that the user is informed of its status. Until then, the user should have the option of editing or cancelling a scheduled job.

An implementation approach would be to have a Scheduler thread running constantly in the background in one of the nodes and collecting JobDetail definitions for job execution.

In any case, there are two the questions (applicable for either a single-node or multi-node scenario):

  1. Does Quartz allow a modification or a cancellation of an already scheduled job?
  2. How can a “callback” mechanism be implemented so that a job execution result is reported back to the UI?

Any code examples, or pointers, are greatly appreciated.

  • 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-03T09:21:52+00:00Added an answer on June 3, 2026 at 9:21 am
    1. Does Quartz allow a modification or a cancellation of an already scheduled job?

    You can “unschedule” a job:

    scheduler.unscheduleJob(triggerKey("trigger1", "group1"));
    

    Or delete a job:

    scheduler.deleteJob(jobKey("job1", "group1"));
    

    As described in the docs:

    http://quartz-scheduler.org/documentation/quartz-2.x/cookbook/UnscheduleJob

    Note, the main difference between the two is unscheduleing a job removes the given trigger, while deleting the job removes all triggers to the given job.

    1. How can a “callback” mechanism be implemented so that a job execution result is reported back to the UI?

    Typically, in the web world, you will poll the web server for changes. Depending upon your web framework, there may be a component available (Push, Pull, Poll?) that makes this easy. Also, what you will need to do is store some state about your job on the server. Once the job finishes you may update a value in the database or possibly in memory. This, in turn, would be picked up by the polling and displayed to the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's said that Java's default serialization mechanism is not very efficient because a)it discovers
I need an efficient mechanism for detecting changes to the DOM. Preferably cross-browser, but
I need to implement a very specific demo mechanism. It must not expire after
I need a mechanism to read session state from a Java class, without having
I have a MYSQL table that holds events information. I need a mechanism that
I'm looking at implementing a failover mechanism for a MySQL database using MySQL Proxy
I have UIPicker that I need to write search mechanism for. The data that
We don't need it if we're implementing Serializable. So why this difference? How does
I am thinking of implementing a good licensing mechanism that has a good resistance
I need to implement some form of communication mechanism in my application, to send

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.