awips2/ncep/gov.noaa.nws.ncep.edex.plugin.mosaic/res/spring/mosaic-ingest.xml
root e2ecdcfe33 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 8e80217e59 [formerly 3360eb6c5f]
Former-commit-id: 377dcd10b9
2012-01-06 08:55:05 -06:00

69 lines
2.3 KiB
XML

<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="mosaicDecoder" class="gov.noaa.nws.ncep.edex.plugin.mosaic.decoder.MosaicDecoder"/>
<bean id="mosaic" class="com.raytheon.uf.edex.esb.camel.BasicThreadPoolRouter">
<constructor-arg>
<value>Generic</value>
</constructor-arg>
</bean>
<bean id="mosaicRegistry" class=" com.raytheon.uf.edex.esb.camel.BasicThreadPoolRouter"
factory-method="getInstance">
<constructor-arg>
<value>Generic</value>
</constructor-arg>
<constructor-arg>
<value>mosaic</value>
</constructor-arg>
<constructor-arg>
<value>directvm:mosaicIngest</value>
</constructor-arg>
</bean>
<bean id="mosaicCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="mosaic-camel"/>
</bean>
<camelContext id="mosaic-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="mosaicFileEndpoint" uri="file:${edex.home}/data/sbn/mosaic?noop=true&amp;idempotent=false" />
<!-- Begin Mosaic routes -->
<route id="mosaicFileConsumerRoute">
<from ref="mosaicFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>mosaic</constant>
</setHeader>
<to uri="jms-generic:queue:Ingest.Mosaic" />
</route>
<route id="mosaicIngestRoute">
<from uri="jms-generic:queue:Ingest.Mosaic" />
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="mosaicDecoder" method="decode" />
<to uri="directvm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:mosaic?level=ERROR&amp;showBody=false" />
</doCatch>
</doTry>
<!-- bean ref="processUtil" method="delete" /-->
</route>
</camelContext>
</beans>