1 pièce(s) jointe(s)
[QUARTZ] Le job ne s'exécute pas
Bonjour,
Je commence à utiliser Quartz et je rencontre déjà un petit problème, à savoir que mon job ne s'exécute pas.
Dans mon web.xml :
Code:
1 2 3 4 5
|
<!-- Listener QUARTZ pour les tâches planifiées -->
<listener>
<listener-class>org.quartz.ee.servlet.QuartzInitializerListener</listener-class>
</listener> |
Le fichier quartz.properties :
Code:
1 2 3 4 5 6 7 8 9
|
# ----------------------------- Threads --------------------------- #
# How many jobs can run at the same time?
org.quartz.threadPool.threadCount=3
# ----------------------------- Plugins --------------------------- #
# Class to load the configuration data for each job and trigger.
# In this example, the data is in an XML file.
org.quartz.plugin.jobInitializer.class=org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin |
Le fichier quartz_data.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<?xml version="1.0" encoding="UTF-8"?>
<job-scheduling-data
xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_2_0.xsd"
version="1.8">
<schedule>
<job>
<name>TestJob</name>
<job-class>ch.application.quartz.jobs.DerniereSaisieJob</job-class>
</job>
<trigger>
<cron>
<name>DerniereSaisieJob</name>
<job-name>DerniereSaisieJob</job-name>
<cron-expression>0 * 10 ? * *</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data> |
Mon job :
Code:
1 2 3 4 5 6 7 8
|
public class DerniereSaisieJob implements Job {
@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException {
System.out.println("Executing Job");
}
} |
Et voici ou sont les fichiers quartz :
Pièce jointe 217172
Qqun sait-il ce qu'il me manque ou ce qui est faux ?
Merci pour votre aide