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

36 lines
1.4 KiB
XML
Raw 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="qpeGenService" class="com.raytheon.uf.edex.ohd.pproc.ArealQpeGenSrv">
</bean>
<camelContext id="clustered-arealQpeGen-context"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="qpeCron" uri="clusteredquartz://pproc/qpeGenScheduled/?cron=${arealqpegen.cron}"/>
<!-- Run ArealQPEGen on Scheduled timer -->
<route id="qpeScheduled">
<from uri="qpeCron" />
<to uri="jms-generic:queue:qpeGenScheduledWork" />
</route>
<route id="qpeGenScheduledWork">
<from uri="jms-generic:queue:qpeGenScheduledWork" />
<doTry>
<bean ref="qpeGenService" method="processArealQpe" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:arealQpeGen?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
<bean factory-bean="contextManager" factory-method="registerClusteredContext">
<constructor-arg ref="clustered-arealQpeGen-context" />
</bean>
</beans>