70 lines
No EOL
3 KiB
XML
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&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> |