Change-Id: Iaf11559e4cdb4f846d02283c5d2038474c0118e3 Former-commit-id: 3aa13bd49e23ef963127f7efbc91054c06808f1c
73 lines
No EOL
3.2 KiB
XML
73 lines
No EOL
3.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="convsigmetDecoder" class="gov.noaa.nws.ncep.edex.plugin.convsigmet.decoder.ConvSigmetDecoder">
|
|
<constructor-arg ref="convsigmetPluginName"/>
|
|
</bean>
|
|
|
|
<bean id="convsigmetSeparator" class="gov.noaa.nws.ncep.edex.plugin.convsigmet.decoder.ConvSigmetSeparator"/>
|
|
|
|
<bean id="convsigmetDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="convsigmet" />
|
|
<constructor-arg value="jms-dist:queue:Ingest.convsigmet" />
|
|
</bean>
|
|
|
|
<bean id="convsigmetCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="convsigmet-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="convsigmet-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!--
|
|
<endpoint id="convsigmetFileEndpoint" uri="file:${edex.home}/data/sbn/convsigmet?noop=true&idempotent=false"/>
|
|
|
|
<route id="convsigmetFileConsumerRoute">
|
|
<from ref="convsigmetFileEndpoint"/>
|
|
<bean ref="fileToString" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>convsigmet</constant>
|
|
</setHeader>
|
|
<to uri="jms-generic:queue:Ingest.convsigmet"/>
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin ConvSigmet routes -->
|
|
<route id="convsigmetIngestRoute">
|
|
<from uri="jms-generic:queue:Ingest.convsigmet"/>
|
|
<setHeader headerName="pluginName">
|
|
<constant>convsigmet</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<split streaming="true">
|
|
<method bean="convsigmetSeparator" method="separate"/>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="convsigmetDecoder" method="decode"/>
|
|
<to uri="directvm:indexAlert"/>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:convsigmet?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</split>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:convsigmet?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |