Change-Id: I58f5081a0c4e55b1b4d47f2d9eecdea6152c86e6 Former-commit-id:5eef22fd4d
[formerlyc0f95eb55a
] [formerly81fc4fa753
] [formerly5eef22fd4d
[formerlyc0f95eb55a
] [formerly81fc4fa753
] [formerlyc4283b0336
[formerly81fc4fa753
[formerly 65a84967aa3afcef1f287fb769fd80f9dbf25349]]]] Former-commit-id:c4283b0336
Former-commit-id:ff64bf589b
[formerlyafae330d8a
] [formerly 162242a2ebbd7afb05bf3ea77dffd622f7190412 [formerlya9c077f0a9
]] Former-commit-id: 9cbc7ddc24e78fbf205d00560788cdfa1249462a [formerly73c0514c3d
] Former-commit-id:8091cae89d
74 lines
No EOL
2.4 KiB
XML
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&idempotent=false" />
|
|
|
|
<!-- Begin Ncscat routes -->
|
|
<route id="ncscatFileConsumerRoute">
|
|
<from ref="ncscatFileEndpoint" />
|
|
<bean ref="fileToString" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>ncscat</constant>
|
|
</setHeader>
|
|
<to uri="jms-generic:queue:Ingest.Ncscat" />
|
|
</route>
|
|
|
|
|
|
<route id="ncscatIngestRoute">
|
|
<from uri="jms-generic: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> |