awips2/ncep/gov.noaa.nws.ncep.edex.plugin.convsigmet/res/spring/convsigmet-ingest.xml
Steve Harris 0c25458510 12.4.1-10 baseline
Former-commit-id: 4bfbdad17d [formerly 9f8cb727a5] [formerly 4bfbdad17d [formerly 9f8cb727a5] [formerly 8485b90ff8 [formerly bf53d06834caa780226121334ac1bcf0534c3f16]]]
Former-commit-id: 8485b90ff8
Former-commit-id: 33a67cdd82 [formerly a28d70b5c5]
Former-commit-id: e5543a0e86
2012-05-01 18:06:13 -05:00

73 lines
No EOL
3.2 KiB
XML
Executable file

<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&amp;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&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</split>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:convsigmet?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>