awips2/edexOsgi/com.raytheon.uf.edex.plugin.loctables/res/spring/loctables-spring.xml
Richard Peter bc169f0a04 Issue #2368: Update JMS routing to set message persistence and durability at the config level
Former-commit-id: 5111debc92 [formerly 9ac3d2ddbeee7265b9b7879fcc6efcee95281872]
Former-commit-id: a5a7816b98
2013-09-15 13:44:17 -05:00

50 lines
No EOL
2 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="loctablesPluginName" class="java.lang.String" depends-on="ndmProc">
<constructor-arg type="java.lang.String" value="loctables" />
</bean>
<bean id="loctablesProperties" class="com.raytheon.uf.common.dataplugin.PluginProperties">
<property name="pluginName" ref="loctablesPluginName" />
</bean>
<bean factory-bean="pluginRegistry" factory-method="register">
<constructor-arg value="loctables"/>
<constructor-arg ref="loctablesProperties"/>
</bean>
<bean id="loctablesIngest" class="com.raytheon.uf.edex.plugin.loctables.ingest.LocationTablesIngest">
<constructor-arg ref="loctablesPluginName" />
<constructor-arg ref="ndmProc" />
</bean>
<bean id="loctablesDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg ref="loctablesPluginName" />
<constructor-arg value="jms-dist:queue:Ingest.loctables" />
</bean>
<camelContext id="loctables-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Begin loctables routes -->
<route id="loctablesIngestRoute">
<from uri="jms-durable:queue:Ingest.loctables"/>
<setHeader headerName="pluginName">
<constant>loctables</constant>
</setHeader>
<doTry>
<bean ref="loctablesIngest" method="processFile" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:loctables?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>