日期:2014-05-18  浏览次数:20703 次

quartz时间控制器
quartz时间控制器怎么配置多个触发器,我的配置只有servlet.UniversalQuartz有触发,servlet.UniversalQuartz2没有反应。代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<quartz>
    <job>        
        <job-detail>        
            <name>ScanItemsInDB</name>        
            <group>Scanning</group>        
            <job-class>servlet.UniversalQuartz</job-class>     
            <job-data-map allows-transient-data="true">     
                 <entry>     
                  <key>testmode</key>     
                  <value>true</value>     
                 </entry>     
            </job-data-map>     
        </job-detail>        
        <trigger>        
            <cron>        
                <name>t1</name>        
                <group> Scanning </group>        
                <job-name> ScanItemsInDB </job-name>        
                <job-group> Scanning </job-group>        
                <cron-expression>0/5 * * * * ?</cron-expression>   
            </cron>        
        </trigger>         
    </job> 
    <job>        
        <job-detail>        
            <name>ScanItemsInDB</name>        
          &