• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Deploying Quartz Scheduler in a Web server

Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic