File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Deploying Quartz Scheduler in a Web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Deploying Quartz Scheduler in a Web server " Watch "Deploying Quartz Scheduler in a Web server " New topic
Author

Deploying Quartz Scheduler in a Web server

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
Hi guys,

I am having some trouble with Quartz. I need to run a job at 12 every midnight. This "Job" records every service that was called during the period of the day (which is saved in a table in the database) and saves the same in a text file. To do so, I am using Quartz. For now I have been running it in the Eclipse IDE and it works just fine. But now I need to deploy it on Apache Tomcat Server along with my services .... But is it possible to deploy a simple java application on the Server. Or is there any another way around this issue.


Many thanks and have a nice day
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi Maya,
I created a war file that contains all the reqd jars plus java class for my project.
I used spring quartz schedular to point at the class/method that would be run every 4min.
I also included spring transaction handling to handle exceptions thrown within my application (i.e database issues etc).

The other approach would be to use window schedular to run the job. The job would contains all the jar + class files
and the schedular would point at your main class, to run the job.

I would use the first approach. it's cleaner and does not depend on the operating system.
Mat

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Quartz Scheduler in a Web server