36 lines
1.4 KiB
XML
36 lines
1.4 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-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>
|