Adding a scheduled job, besides the NotificationManager

"Loeher, Hendrik" <[email protected]>
Newsgroups gmane.comp.java.scarab.user
Message-ID <410381B9FD0BDE4C95C7212C2E83F5E0010BCD8A@esnk2e1a.ww001.siemens.net>
Hello Reader.
 
How can i add another job in quartz?
The thing is, if i set up the TestJob on top off the NotificationManager
(in the following file), quartz will execute only the "TestJob" class!
If i set it up in the following order, the NotificationManager will
start, but not the Testjob!
I have modified the componentConfiguration.xml this way:
 
    <quartz>   
        <scheduled jobName="NotificationManagerJob" jobGroup="Scarab"
triggerName="NMTrigger" triggerGroup="Scarab"/>
        <jobDetails>
            <list>
              <org.quartz.JobDetail>
                <name>NotificationManagerJob</name>
                <group>Scarab</group>
 
<jobClass>org.tigris.scarab.notification.NotificationManagerJob</jobClas
s>
                <volatility>false</volatility>
                <durability>true</durability>
                <shouldRecover>false</shouldRecover>
                <jobListeners/>
              </org.quartz.JobDetail>
            </list>            
        </jobDetails>
        <triggers>
            <list>
              <org.quartz.CronTrigger>                
                <name>NMTrigger</name>
                <group>Scarab</group>
                <cronExpression>* * * * * ?</cronExpression>
                <description>Launches the NM every minute</description>
                <jobName>NotificationManagerJob</jobName>
                <jobGroup>Scarab</jobGroup>                
              </org.quartz.CronTrigger>
             </list>  
        </triggers>
        <scheduled jobName="TestJob" jobGroup="Scarab"
triggerName="TTrigger" triggerGroup="Scarab"/>
        <jobDetails>
            <list>
              <org.quartz.JobDetail>
                <name>TestJob</name>
                <group>Scarab</group>
 
<jobClass>org.tigris.scarab.notification.TestJob</jobClass>
                <volatility>false</volatility>
                <durability>true</durability>
                <shouldRecover>false</shouldRecover>
                <jobListeners/>
              </org.quartz.JobDetail>
            </list>            
        </jobDetails>
        <triggers>
            <list>
              <org.quartz.CronTrigger>                
                <name>TTrigger</name>
                <group>Scarab</group>
                <cronExpression>* * * * * ?</cronExpression>
                <description>Launches the NM every minute</description>
                <jobName>TestJob</jobName>
                <jobGroup>Scarab</jobGroup>                
              </org.quartz.CronTrigger>
             </list>  
        </triggers>
    </quartz>    
 
In the quartz.properties i set that: 
org.quartz.threadPool.threadCount = 10
 
And the TestJob.java in the notification folder:
package org.tigris.scarab.notification;
 
/* ================================================================
 * Copyright (c) 2000-2005 CollabNet.  All rights reserved.
 * ====================================================================
 *
 * SNIPP *
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CollabNet.
 */
 
import java.sql.Time;
 
import org.apache.log4j.Logger;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.SchedulerException;
import org.quartz.Job;
import org.tigris.scarab.util.Log;
 
public class TestJob implements Job {
 public static Logger log = Log.get(TestJob.class.getName());
 
 /**
  * Executes the process that send the pending notifications.
  */
 public void execute(JobExecutionContext jobContext) throws
JobExecutionException {
  log.info("Test startet!");
 }
}

What to do? I'm totaly confused, found no more quartz files...
 
Many thanks for helping!
Hendrik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.