awips2/ncep/gov.noaa.nws.ncep.edex.plugin.aww/res/spring/aww-ingest.xml
Richard Peter 2b02cee6ff Issue #2298: Make getPluginName abstract
Change-Id: Ieefc9ab24dee34ed5c653d035db2a2e1f0e6f9ae

Former-commit-id: 04c64843dd [formerly feeddb503f] [formerly 41550aaf9f] [formerly 04c64843dd [formerly feeddb503f] [formerly 41550aaf9f] [formerly 80e7b265dd [formerly 41550aaf9f [formerly 0f939c3d1f89bf3463315528c1b47f5f49e2fa05]]]]
Former-commit-id: 80e7b265dd
Former-commit-id: ebd1861dbf [formerly 744320a0ff] [formerly 8730e09117da72755c56a49d5b1957697ffdfe1d [formerly 917a2d153f]]
Former-commit-id: 5f8e897b4442bda1ab2cda9997dabe889ab3b83b [formerly 45f84d6889]
Former-commit-id: da668e7cc9
2013-09-12 12:48:36 -05:00

80 lines
No EOL
3.2 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="awwDecoder" class="gov.noaa.nws.ncep.edex.plugin.aww.decoder.AwwDecoder"/>
<bean id="awwSeparator" class="gov.noaa.nws.ncep.edex.plugin.aww.decoder.AwwSeparator"/>
<!-- bean id="awwRegistry" class=" com.raytheon.uf.edex.esb.camel.BasicThreadPoolRouter"
factory-method="getInstance" depends-on="alphaNumericDatatypePool">
<constructor-arg><value>AlphaNumeric</value></constructor-arg>
<constructor-arg><value>aww</value></constructor-arg>
<constructor-arg><value>direct-vm:awwIngest</value></constructor-arg>
</bean-->
<bean id="awwDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="aww" />
<constructor-arg value="jms-dist:queue:Ingest.aww" />
</bean>
<!-- bean id="awwDistRegistry" class="com.raytheon.uf.edex.distribution.DistributionSrv"
factory-method="register">
<constructor-arg value="aww" />
<constructor-arg value="jms-generic:queue:Ingest.AlphaNumeric" />
</bean-->
<bean id="awwCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="aww-camel"/>
</bean>
<camelContext id="aww-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="awwFileEndpoint" uri="file:${edex.home}/data/sbn/aww?noop=true&amp;idempotent=false"/>
<!-- Begin Aww routes -->
<route id="awwFileConsumerRoute">
<from ref="awwFileEndpoint"/>
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>aww</constant>
</setHeader>
<to uri="jms-generic:queue:Ingest.aww"/>
</route>
<route id="awwIngestRoute">
<from uri="jms-generic:queue:Ingest.aww"/>
<setHeader headerName="pluginName">
<constant>aww</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<split streaming="true">
<method bean="awwSeparator" method="separate"/>
<doTry>
<pipeline>
<bean ref="awwDecoder" method="decode"/>
<to uri="direct-vm:indexAlert"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:aww?level=ERROR"/>
</doCatch>
</doTry>
</split>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:aww?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>