2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2013-06-10 15:17:17 -04:00
|
|
|
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
|
2012-01-06 08:55:05 -06:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
2013-11-26 17:33:52 -06:00
|
|
|
<bean id="vaaDecoder" class="com.raytheon.uf.edex.plugin.vaa.VAADecoder"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
|
|
|
<bean id="vaaDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg ref="vaaPluginName" />
|
2014-02-21 06:50:59 -05:00
|
|
|
<constructor-arg value="jms-durable:queue:Ingest.vaa"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="vaaCamelRegistered" factory-bean="contextManager"
|
|
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
|
|
<constructor-arg ref="vaa-camel"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="vaa-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler"
|
|
|
|
autoStartup="false">
|
|
|
|
<!--
|
|
|
|
<endpoint id="vaaFileEndpoint" uri="file:${edex.home}/data/sbn/vaa?noop=true&idempotent=false" />
|
|
|
|
|
|
|
|
<route id="vaaFileConsumerRoute">
|
|
|
|
<from ref="vaaFileEndpoint" />
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>vaa</constant>
|
|
|
|
</setHeader>
|
2013-09-15 13:44:17 -05:00
|
|
|
<to uri="jms-durable:queue:Ingest.vaa" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</route>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Begin vaa routes -->
|
|
|
|
<route id="vaaIngestRoute">
|
2013-09-15 13:44:17 -05:00
|
|
|
<from uri="jms-durable:queue:Ingest.vaa"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>vaa</constant>
|
|
|
|
</setHeader>
|
|
|
|
<pipeline>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<bean ref="vaaDecoder" method="decode" />
|
2013-11-26 17:33:52 -06:00
|
|
|
<to uri="direct-vm:indexAlert" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:vaa?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</pipeline>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|