Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
57 lines
No EOL
2.2 KiB
XML
57 lines
No EOL
2.2 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="bufrmosDecoder" class="com.raytheon.edex.plugin.bufrmos.BufrMosDecoder" />
|
|
|
|
<bean id="bufrmosDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="bufrmos" />
|
|
<constructor-arg value="jms-dist:queue:Ingest.bufrmos?destinationResolver=#qpidDurableResolver" />
|
|
</bean>
|
|
|
|
<bean id="bufrmosCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="bufrmos-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="bufrmos-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!--
|
|
<endpoint id="bufrmosFileEndpoint"
|
|
uri="file:${edex.home}/data/sbn/bufrmos?noop=true&idempotent=false" />
|
|
|
|
<route id="bufrmosFileConsumerRoute">
|
|
<from ref="bufrmosFileEndpoint" />
|
|
<bean ref="fileToString" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>bufrmos</constant>
|
|
</setHeader>
|
|
<to uri="jms-generic:queue:Ingest.bufrmos" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin bufrmos routes -->
|
|
<route id="bufrmosIngestRoute">
|
|
<from uri="jms-generic:queue:Ingest.bufrmos?destinationResolver=#qpidDurableResolver" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>bufrmos</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="bufrmosDecoder" method="decode"/>
|
|
<to uri="directvm:persistIndexAlert"/>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:bufrmos?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |