awips2/ncep/gov.noaa.nws.ncep.edex.plugin.mcidas/res/spring/mcidas-ingest.xml
Steve Harris e1f7463a41 13.5.2-8 baseline
Former-commit-id: 8ba7d392d6 [formerly 94aa71fcd1] [formerly 8ba7d392d6 [formerly 94aa71fcd1] [formerly 18325949fb [formerly 6effdd3f5ce46910c89236306fa33499eada174f]]]
Former-commit-id: 18325949fb
Former-commit-id: 21b84f0290 [formerly d89fbf73d9]
Former-commit-id: 088eb89ca7
2013-10-04 11:30:03 -04:00

63 lines
No EOL
2.3 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="mcidasDao" class="gov.noaa.nws.ncep.common.dataplugin.mcidas.dao.McidasDao">
<constructor-arg ref="mcidasPluginName" />
</bean>
<bean id="mcidasDecoder" class="gov.noaa.nws.ncep.edex.plugin.mcidas.decoder.McidasDecoder">
<property name="dao" ref="mcidasDao" />
</bean>
<!-- bean id="mcidasRegistry" class=" com.raytheon.uf.edex.esb.camel.BasicThreadPoolRouter"
factory-method="getInstance" depends-on="alphaNumericDatatypePool">
<constructor-arg><value>AlphaNumeric</value></constructor-arg>
<constructor-arg><value>mcidas</value></constructor-arg>
<constructor-arg><value>direct-vm:mcidasIngest</value></constructor-arg>
</bean-->
<bean id="mcidasRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="mcidas" />
<constructor-arg value="jms-dist:queue:Ingest.mcidas" />
</bean>
<bean id="mcidasCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="mcidas-camel"/>
</bean>
<camelContext id="mcidas-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="mcidasFileEndpoint" uri="file:${edex.home}/data/sbn/mcidas?noop=true&amp;idempotent=false"/>
<!-- Begin McIDAS routes -->
<route id="mcidasFileConsumerRoute">
<from ref="mcidasFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>mcidas</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.mcidas" />
</route>
<route id="mcidasIngestRoute">
<from uri="jms-durable:queue:Ingest.mcidas" />
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="mcidasDecoder" method="decode" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:mcidas?level=ERROR" />
</doCatch>
</doTry>
</route>
</camelContext>
</beans>