awips2/ncep/gov.noaa.nws.ncep.edex.plugin.ffg/res/spring/ffg-ingest.xml
Steve Harris cfb3194426 14.1.1-7 baseline
Former-commit-id: 80614c0e52 [formerly 3328e2dd1d] [formerly 80614c0e52 [formerly 3328e2dd1d] [formerly 4fff87723f [formerly 8add3b227e88c3943ea605fdc4e2f2b3c7dcf998]]]
Former-commit-id: 4fff87723f
Former-commit-id: b694612fe0 [formerly 48df058653]
Former-commit-id: 647b908fed
2013-11-06 14:16:14 -05:00

69 lines
No EOL
2.6 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="ffgDecoder" class="gov.noaa.nws.ncep.edex.plugin.ffg.decoder.FfgDecoder"/>
<bean id="ffgSeparator" class="gov.noaa.nws.ncep.edex.plugin.ffg.decoder.FfgSeparator"/>
<bean id="ffgDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="ffg" />
<constructor-arg value="jms-dist:queue:Ingest.ffg" />
</bean>
<bean id="ffgCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="ffg-camel"/>
</bean>
<camelContext id="ffg-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!--
<endpoint id="ffgFileEndpoint" uri="file:${edex.home}/data/sbn/ffg?noop=true&amp;idempotent=false"/>
<route id="ffgFileConsumerRoute">
<from ref="ffgFileEndpoint"/>
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>ffg</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.ffg"/>
</route>
-->
<!-- Begin Ffg routes -->
<route id="ffgIngestRoute">
<from uri="jms-durable:queue:Ingest.ffg"/>
<setHeader headerName="pluginName">
<constant>ffg</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<split streaming="true">
<method bean="ffgSeparator" method="separate"/>
<doTry>
<pipeline>
<bean ref="ffgDecoder" method="decode"/>
<to uri="direct-vm:indexAlert"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ffg?level=ERROR"/>
</doCatch>
</doTry>
</split>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ffg?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>