awips2/edexOsgi/com.raytheon.uf.edex.ohd/res/spring/arealQpeGen-spring.xml
2022-05-05 12:34:50 -05:00

40 lines
No EOL
1.5 KiB
XML

<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.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>