awips2/ncep/gov.noaa.nws.ncep.edex.plugin.ncscat/res/spring/ncscat-ingest.xml
Richard Peter d38773fc03 Issue #2368: Update JMS routing to set message persistence and durability at the config level
Former-commit-id: 449692aeff [formerly b803359eb4] [formerly 5111debc92] [formerly 449692aeff [formerly b803359eb4] [formerly 5111debc92] [formerly a5a7816b98 [formerly 5111debc92 [formerly 9ac3d2ddbeee7265b9b7879fcc6efcee95281872]]]]
Former-commit-id: a5a7816b98
Former-commit-id: 21fb70a26a [formerly db69f5b54a] [formerly 30f0c6a3141bbd70f57d9187f7478aa7a8aecd56 [formerly bc169f0a04]]
Former-commit-id: 4a8c427f1c11daaee6646c7b4ca27cb08a82416c [formerly 7fe0220024]
Former-commit-id: 4effeb83ba
2013-09-15 13:44:17 -05:00

74 lines
No EOL
2.4 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="ncscatDao" class="gov.noaa.nws.ncep.common.dataplugin.ncscat.dao.NcscatDao">
<constructor-arg ref="ncscatPluginName"/>
</bean>
<bean id="ncscatDecoder" class="gov.noaa.nws.ncep.edex.plugin.ncscat.decoder.NcscatDecoder">
<constructor-arg ref="ncscatPluginName"/>
</bean>
<bean id="ncscatDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="ncscat" />
<constructor-arg value="jms-dist:queue:Ingest.ncscat" />
</bean>
<bean id="ncscatCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="ncscat-camel"/>
</bean>
<camelContext id="ncscat-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="ncscatFileEndpoint" uri="file:${edex.home}/data/sbn/ncscat??noop=true&amp;idempotent=false" />
<!-- Begin Ncscat routes -->
<route id="ncscatFileConsumerRoute">
<from ref="ncscatFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>ncscat</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.Ncscat" />
</route>
<route id="ncscatIngestRoute">
<from uri="jms-durable:queue:Ingest.Ncscat" />
<!-- <setHeader headerName="pluginName">
<constant>ncscat</constant>
</setHeader>-->
<doTry>
<pipeline>
<bean ref="stringToFile" />
<doTry>
<pipeline>
<!--
need to replace the method decode with decodeNcscatInputFile
<bean ref="ncscatDecoder" method="decode" /> -->
<bean ref="ncscatDecoder" method="decodeNcscatInputFile" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ncscat?level=ERROR" />
</doCatch>
</doTry>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:ncscat?level=ERROR" />
</doCatch>
</doTry>
<!-- bean ref="processUtil" method="delete" /-->
</route>
</camelContext>
</beans>