2013-03-12 08:35:45 -05:00
|
|
|
<beans
|
|
|
|
xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-06-28 09:46:25 -04:00
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
2013-03-12 08:35:45 -05:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<bean id="ntransDao" class="gov.noaa.nws.ncep.common.dataplugin.ntrans.dao.NtransDao">
|
|
|
|
<constructor-arg ref="ntransPluginName"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="ntransDecoder" class="gov.noaa.nws.ncep.edex.plugin.ntrans.decoder.NtransDecoder">
|
|
|
|
<constructor-arg ref="ntransPluginName"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
|
|
|
|
<bean id="ntransDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg value="ntrans" />
|
|
|
|
<constructor-arg value="jms-dist:queue:Ingest.ntrans" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="ntransCamelRegistered" factory-bean="contextManager"
|
|
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
|
|
<constructor-arg ref="ntrans-camel"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="ntrans-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler"
|
|
|
|
autoStartup="false">
|
|
|
|
<endpoint id="ntransFileEndpoint" uri="file:${edex.home}/data/sbn/ntrans??noop=true&idempotent=false" />
|
|
|
|
|
|
|
|
<!-- Begin Ntrans routes -->
|
|
|
|
<route id="ntransFileConsumerRoute">
|
|
|
|
<from ref="ntransFileEndpoint" />
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>ntrans</constant>
|
|
|
|
</setHeader>
|
|
|
|
<to uri="jms-generic:queue:Ingest.Ntrans" />
|
|
|
|
</route>
|
|
|
|
|
|
|
|
|
|
|
|
<route id="ntransIngestRoute">
|
|
|
|
<from uri="jms-generic:queue:Ingest.Ntrans" />
|
|
|
|
<!-- <setHeader headerName="pluginName">
|
|
|
|
<constant>ntrans</constant>
|
|
|
|
</setHeader>-->
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<doTry>
|
2013-06-24 09:29:43 -04:00
|
|
|
<pipeline>
|
|
|
|
<bean ref="ntransDecoder" method="decode" />
|
2013-06-10 15:17:17 -04:00
|
|
|
<to uri="direct-vm:persistIndexAlert" />
|
2013-03-12 08:35:45 -05:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:ntrans?level=ERROR" />
|
2013-03-12 08:35:45 -05:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:ntrans?level=ERROR" />
|
2013-03-12 08:35:45 -05:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
<!-- bean ref="processUtil" method="delete" /-->
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|