awips2/edexOsgi/com.raytheon.uf.edex.plugin.acars/res/spring/acars-ingest.xml
Steve Harris 2039d101ef 14.1.1-4 baseline
Former-commit-id: cb3b53f205 [formerly 82dec19b6a] [formerly 20443a5d933e8268c1fb3f455df197a71fca1203 [formerly bd95bb6a4e]] [formerly 99e3707c5b [formerly bd95bb6a4e [formerly 0cda967cc9da9d2a08a0197db23d48c65f03be81]]]
Former-commit-id: 99e3707c5b
Former-commit-id: 2d757fef6618aded3efb26a4e6771f03101fe824 [formerly 7590a56e0e]
Former-commit-id: b60635cd70
2013-10-28 10:55:16 -04:00

64 lines
No EOL
2.1 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="acarsDecoder" class="com.raytheon.uf.edex.plugin.acars.ACARSDecoder" depends-on="acarsPluginName" >
<constructor-arg ref="acarsPluginName" />
</bean>
<bean id="acarsDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg ref="acarsPluginName" />
<constructor-arg value="jms-dist:queue:Ingest.acars"/>
</bean>
<bean id="acarsCamelRegistered" factory-bean="contextManager"
factory-method="register"
depends-on="persistCamelRegistered,
acarsSoundingCamelRegistered">
<constructor-arg ref="acars-camel"/>
</bean>
<camelContext id="acars-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!--
<endpoint id="acarsFileEndpoint" uri="file:${edex.home}/data/sbn/acars?noop=true&amp;idempotent=false" />
<route id="acarsFileConsumerRoute">
<from ref="acarsFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>acars</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.acars" />
</route>
-->
<!-- Begin ACARS routes -->
<route id="acarsIngestRoute">
<from uri="jms-durable:queue:Ingest.acars"/>
<setHeader headerName="pluginName">
<constant>acars</constant>
</setHeader>
<bean ref="stringToFile" />
<doTry>
<pipeline>
<bean ref="acarsDecoder" method="decode" />
<multicast>
<to uri="direct-vm:indexAlert" />
<to uri="direct-vm:acarsSounding" />
</multicast>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:acars?level=ERROR"/>
</doCatch>
</doTry>
<!-- bean ref="processUtil" method="delete" / -->
</route>
</camelContext>
</beans>