1

我有石英工作 Quartz UpdateContentMetaData.class,我有石英 2.x 工作 xml:

<?xml version='1.0' encoding='utf-8'?>
<job-scheduling-data version="2.0" 
    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">
    <schedule>    
        <job>
            <name>UpdateContentJob</name>
            <job-class>ru.icb.cms.schedule.job.UpdateContentMetaData</job-class>
            <job-data-map>
                <entry>
                    <key>provider</key>
                    <value>2</value>
                </entry>
            </job-data-map>
        </job>
        <trigger>
            <simple>
                <name>minute_job</name>
                <group>DEFAULT</group>
                <job-name>minute_job</job-name>
                <job-group>DEFAULT</job-group>
                <repeat-count>-1</repeat-count>
                <repeat-interval>60000</repeat-interval>
            </simple>
        </trigger>    
    </schedule>
</job-scheduling-data>

如何在没有触发器的情况下创建 xml 作业?

4

1 回答 1

1

你试过了吗:

<schedule>
        <job>
            <name>TestJob1</name>
            <job-class>org.quartz.examples.example10.SimpleJob</job-class>
        <durability>true</durability>
        <recover>true</recover>
    </job>
</schedule>   
于 2012-06-12T14:50:32.187 回答