`
hanhan8020
  • 浏览: 45660 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean

阅读更多

    <bean id="refreshPFConfigDataJob"  class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject" ref="pfConfiguration"/>
       
        <property name="targetMethod" value="refreshPFConfigData"/>
        <property name="concurrent" value="false"/>
    </bean>
    
    <bean id="refreshPFConfigDataTrig" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
        <property name="jobDetail" ref="refreshPFConfigDataJob"/>
        <!-- Delay for 10 minutes -->
        <property name="startDelay" value="600000"/>
        <!-- Repeat every 5 minutes -->
        <property name="repeatInterval" value="300000"/>
    </bean>

    <bean id="refreshPFConfigDataScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="false">
        <property name="triggers">
            <list>
                <ref bean="refreshPFConfigDataTrig" />                    
            </list>
        </property>
        <property name="startupDelay" value="1"/>
    </bean>

 

分享到:
评论

相关推荐

    spring java 定时器 执行两次 quartz

    &lt;bean id="myJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; ``` 在这个例子中,`cronExpression`定义了任务的执行频率,`targetObject`和`targetMethod`指定...

    关于spring中quartz的配置

    &lt;bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;!-- 指定Job类和执行方法 --&gt; &lt;bean class="org.springframework.scheduling.quartz....

    定时器的配置文件(两种方式:springmvc自带定时,Quartz与spring结合的定时)

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="myTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&gt; *...

    封装通用的Spring3+Struts2+MyBatis3的CRUD+条件分页查询,Spring+Quartz调度,FunctionCharts图像化工具

    &lt;bean id="temperMonitorTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;!-- 调用的类 --&gt; &lt;!-- 调用类中的方法 --&gt; &lt;value&gt;temperatureMonitorTimer ...

    Java_Spring与Quartz的整合

    - 通过实现`org.springframework.scheduling.quartz.JobExecutionException`,可以捕获Job执行过程中的异常,进行统一处理。 8. **事务支持** - 如果Job需要在数据库事务中执行,可以利用Spring的事务管理功能,...

    spring定时器

    import org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean; import org.springframework.scheduling.quartz.CronTriggerFactoryBean; @Bean public JobDetail jobDetail() { ...

    Spring3.2.4+Quartz2.2.0 Demo

    class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;value&gt;work &lt;!-- job的配置结束 --&gt; &lt;!-- 工作的bean --&gt; &lt;bean id="myJob" class="com.tgb.lk....

    spring之定时任务实现(spring-task和quartz等不同方式)

    &lt;bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt; &lt;!-- 这里添加触发器配置 --&gt; &lt;!-- 这里添加任务详情配置 --&gt; ``` 然后,定义Job类并实现`org....

    spring-quartz.zip

    &lt;bean id="emailJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="emailTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean...

    quartz 随tomcat启动执行一次

    &lt;bean id="demo1" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt; * * * ?"/&gt; ``` - **SimpleTriggerBean**:这是一种简单的触发器,可以配置初始延迟和重复间隔。例如,“demo2”被配置...

    springjdbc

    &lt;bean id="querytestController" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="querytestControllerTrigger" class="org.springframework.scheduling....

    spring3+ quartz1.8使用以及eclipse代码

    &lt;bean id="myJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="myCronTrigger" class="org.springframework.scheduling.quartz....

    Spring中Quartz的配置实例

    &lt;bean id="myJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; ``` 最后,别忘了在Spring配置文件中注册Trigger: ```xml &lt;bean id="schedulerBean" class="...

    Spring -Quartz的配置

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt; * *...

    Spring3.2.3+Quartz2.2 整合配置

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;property name="concurrent" value="false" /&gt; &lt;!-- Job是否可并发执行 --&gt; &lt;!-- 配置Trigger --&gt; ...

    spring定时任务之Quartz

    &lt;bean id="myJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; ``` 最后,将Job注入到Service或者DAO层,以便在`executeJob()`方法中执行实际的业务逻辑: ...

    spring+quartz需要的4个jar包 不需要6个

    import org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean; import org.springframework.scheduling.quartz.SchedulerFactoryBean; import org.springframework.stereotype.Component; @...

    配置quartz相关

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="myTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&gt; *...

    Spring中Quartz调度器的使用 示例代码

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="myTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&gt; ...

    quartz在spring中的使用实例

    &lt;bean id="myJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt; &lt;bean id="myTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&gt;...

Global site tag (gtag.js) - Google Analytics