awips2/edexOsgi/com.raytheon.uf.edex.ohd/res/spring/ihfsDbPurge-spring.xml

40 lines
1.3 KiB
XML
Raw Permalink Normal View History

2017-04-21 18:33:55 -06:00
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="ihfsDbPurge" class="com.raytheon.uf.edex.ohd.whfs.WhfsSrv">
<constructor-arg>
<value>run_db_purge</value>
</constructor-arg>
</bean>
<camelContext id="ihfsDbPurge-context"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="ihfsDbPurgeCron" uri="clusteredquartz://whfs/ihfsDbPurgeScheduled/?cron=${ihfsdbpurge.cron}"/>
<!-- Run alarmWhfs on Scheduled timer -->
<route id="ihfsDbPurgeScheduled">
<from uri="ihfsDbPurgeCron"/>
<to uri="jms-generic:queue:ihfsDbPurgeScheduledWork" />
</route>
<route id="ihfsDbPurgeScheduledWork">
<from uri="jms-generic:queue:ihfsDbPurgeScheduledWork" />
<doTry>
<bean ref="ihfsDbPurge" method="execute" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ihfsDbPurge?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>