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?
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.