首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

quartz时间控制器解决方法

2013-11-30 
quartz时间控制器quartz时间控制器怎么配置多个触发器,我的配置只有servlet.UniversalQuartz有触发,servle

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>        
            <group>Scanning</group>        
            <job-class>servlet.UniversalQuartz2</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>          
</quartz>  

quartz 时间控制器
[解决办法]
ScanItemsInDB 是不是重名了?

热点排行