awips2/edexOsgi/com.raytheon.uf.edex.plugin.loctables/res/spring/loctables-spring.xml
root 9bb8decbcf Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 377dcd10b9 [formerly 3360eb6c5f]
Former-commit-id: 8e80217e59
2012-01-06 08:55:05 -06:00

51 lines
No EOL
2.3 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.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-generic:queue:Ingest.loctables?destinationResolver=#qpidDurableResolver" />
<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&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>