50 lines
No EOL
1.7 KiB
XML
50 lines
No EOL
1.7 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="bufrmosDecoder" class="com.raytheon.uf.edex.plugin.bufrmos.BufrMosDecoder" />
|
|
|
|
<bean id="bufrmosDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="bufrmos" />
|
|
<constructor-arg value="jms-durable:queue:Ingest.bufrmos" />
|
|
</bean>
|
|
|
|
<camelContext id="bufrmos-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
<!--
|
|
<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-durable:queue:Ingest.bufrmos" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin bufrmos routes -->
|
|
<route id="bufrmosIngestRoute">
|
|
<from uri="jms-durable:queue:Ingest.bufrmos" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>bufrmos</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="bufrmosDecoder" method="decode"/>
|
|
<to uri="direct-vm:persistIndexAlert"/>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:bufrmos?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |