awips2/ncep/gov.noaa.nws.ncep.edex.plugin.intlsigmet/res/spring/intlsigmet-ingest.xml
Steve Harris bd95bb6a4e 14.1.1-4 baseline
Former-commit-id: 0cda967cc9da9d2a08a0197db23d48c65f03be81
2013-10-28 10:55:16 -04:00

70 lines
No EOL
3 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="intlsigmetDecoder" class="gov.noaa.nws.ncep.edex.plugin.intlsigmet.decoder.IntlSigmetDecoder">
<constructor-arg ref="intlsigmetPluginName"/>
</bean>
<bean id="intlsigmetSeparator" class="gov.noaa.nws.ncep.edex.plugin.intlsigmet.decoder.IntlSigmetSeparator"/>
<bean id="intlsigmetDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="intlsigmet" />
<constructor-arg value="jms-dist:queue:Ingest.intlsigmet" />
</bean>
<bean id="intlsigmetCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="intlsigmet-camel"/>
</bean>
<camelContext id="intlsigmet-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!--
<endpoint id="intlsigmetFileEndpoint" uri="file:${edex.home}/data/sbn/intlsigmet?noop=true&amp;idempotent=false"/>
<route id="intlsigmetFileConsumerRoute">
<from ref="intlsigmetFileEndpoint"/>
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>intlsigmet</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.intlsigmet"/>
</route>
-->
<!-- Begin IntlSigmet routes -->
<route id="intlsigmetIngestRoute">
<from uri="jms-durable:queue:Ingest.intlsigmet"/>
<setHeader headerName="pluginName">
<constant>intlsigmet</constant>
</setHeader>
<bean ref="stringToFile" />
<doTry>
<pipeline>
<split streaming="true">
<method bean="intlsigmetSeparator" method="separate"/>
<doTry>
<pipeline>
<bean ref="intlsigmetDecoder" method="decode"/>
<to uri="direct-vm:indexAlert"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:intlsigmet?level=ERROR"/>
</doCatch>
</doTry>
</split>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:intlsigmet?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>