• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Quartz Scheduler - Eclipse

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello and thanks for reading,

I'm trying to use Quartz Scheduler in a web project that sends out emails to users at preset intervals. I would happy to be able to print out simple "hello world" statements at this point.

This is the code for the application that I would like to run.



and this is the job that is to be called:



this is my quartz.properties file:



and last but not least this is what I have added to my web.xml file



Now, I am quite sure that the project is able to detect and read my quartz.properties file, but I have no reason to believe that the project (i.e. the server) knows anything about QuartzTest.java. I have not registered the class anywhere and likewise it is never called. Does anyone know how I can do this?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first code you posted is for a stand-alone application that has nothing to do with web applications of web servers. Thus having is schedule quartz will not affect your web app in any way. Most web application servers have mechanism for scheduling tasks, some even use quartz as the underlying mechanism. If you would tell us which application server you are using, we could provide more help.
 
Dan Van
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thanks for the reply, I am using a Tomcat server
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move your post to the Tomcat forum, someone there might be able to help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!