awips2/edexOsgi/com.raytheon.uf.edex.plugin.preciprate/res/spring/preciprate-ingest.xml
Brian Clements 6948aec9cd Omaha #3503 Composite product generators init after spring beans are loaded
Change-Id: I894adbc14e1bfe183a3f7717d95dba85291a2a09

Former-commit-id: 11fa1b962c [formerly 5dc5530120] [formerly 095f84e71f] [formerly 11fa1b962c [formerly 5dc5530120] [formerly 095f84e71f] [formerly b88f012e69 [formerly 095f84e71f [formerly f6109e74ff5e26547c8fc03d7bb5ecde1046f689]]]]
Former-commit-id: b88f012e69
Former-commit-id: 2540fa9a95 [formerly f29fb0a656] [formerly f52e0674ecdaac7e697e849aef805d1954d0f156 [formerly e6b2143a6b]]
Former-commit-id: 2b18d20744bbddd9a580553d65302bd310fc36a0 [formerly 237bdc0e2a]
Former-commit-id: a08ebbe0c7
2014-08-26 17:12:34 -05:00

31 lines
No EOL
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="preciprateGenerator" class="com.raytheon.uf.edex.plugin.preciprate.PrecipRateGenerator"/>
<bean factory-bean="contextManager" factory-method="registerContextStateProcessor">
<constructor-arg ref="preciprate-camel" />
<constructor-arg ref="preciprateGenerator" />
</bean>
<bean factory-bean="cpgSrvDispatcher" factory-method="register">
<constructor-arg ref="preciprateGenerator"/>
</bean>
<camelContext id="preciprate-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<route id="PrecipRateGenerate">
<from uri="jms-durable:queue:preciprateGenerate"/>
<doTry>
<bean ref="serializationUtil" method="transformFromThrift" />
<bean ref="preciprateGenerator" method="generate" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:precipRate?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>