Triggering Quartz batch jobs

Posted on 2006-06-05
Medium Priority
Last Modified: 2011-10-03
Hi everyone,
I have a list of scheduled batch jobs written with java and scheduled with quartz to run once a day, and running on Linux. How can I trigger one of those batch jobs to run whenever I need without having to wait for that prescheduled time?
Many Thanks,
Miss “B”
Question by:mbayader
  • 2
  • 2

Accepted Solution

colr__ earned 1000 total points
ID: 16832242
You'd have to proved an interface to the schedular that would initiate a job start on pressing a button or something.

I assume from your post that you dont have a 'foront'end' as such, in that Quartz controls when each program is to be executed, but each java job itself is comlpetly idependant of the Quartz shedular?

How do you add the jobs to Quartz? Is it through a UI youve created? (sorry, im not familiar with Quartz itself, but Ive worked with scheduled jobns before).


Author Comment

ID: 16832935
Hi Colr,
Many thanks for ur comments. The jobs are scheduled in an XML file, with dates to run at, including the hours if it will run more than once a day. And yes you could have an action or some interface to trigger it from, but that will require hard coding java into the system. I just want to run it manually without having to add any java classes to do so.
Miss "B"

Expert Comment

ID: 16832969
Would the simplest option not be to add a "run once" rule at 2 mins from the current time for each job you want to manually run?


Author Comment

ID: 16833039
It would have made it much much easier, you would think. But unfortunately the system wasn’t developed by me.  And quite frankly I am not that keen on using batch jobs. I guess the only option as u have motioned is to have an UI somewhere to run it once.
Many thanks again,
Miss “B”

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question