
spring.scheduler.ora-stored-hz-scheduler.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"> <bean id = "jobStore" class="ru.taskurotta.service.ora.schedule.storage.OraJobStore" > <property name="dataSource" ref="dataSource" /> </bean> <bean id = "realJobManager" class="ru.taskurotta.service.schedule.QuartzJobManager" > <constructor-arg name="jobStore" ref="jobStore" /> <constructor-arg name="queueInfoRetriever" ref="realQueueBackend" /> <constructor-arg name="taskServer" ref="taskServer" /> </bean> <bean id="jobManager" class="ru.taskurotta.service.hz.schedule.adapter.HzJobManagerAdapter"> <constructor-arg name="hzInstance" ref="hzInstance" /> <constructor-arg name="scheduleTopicName" value = "${hz.schedule.topic-name}" /> <constructor-arg name="jobManager" ref="realJobManager" /> </bean> <!-- Scheduler transactions --> <tx:advice id="schedulerAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="startJob" propagation="REQUIRES_NEW"/> <tx:method name="stopJob" propagation="REQUIRES_NEW"/> <tx:method name="addJob" propagation="REQUIRES_NEW"/> <tx:method name="removeJob" propagation="REQUIRES_NEW"/> <tx:method name="updateJob" propagation="REQUIRES_NEW"/> <tx:method name="updateJobStatus" propagation="REQUIRES_NEW"/> <tx:method name="updateErrorCount" propagation="REQUIRES_NEW"/> <tx:method name="synchronizeScheduledTasksWithStore" propagation="REQUIRES_NEW"/> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="schedulerPointcut" expression="execution(* ru.taskurotta.service.schedule.QuartzJobManager.*(..))"/> <aop:advisor advice-ref="schedulerAdvice" pointcut-ref="schedulerPointcut"/> </aop:config> <!-- /Transactions --> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy