Former-commit-id:cb3b53f205
[formerly82dec19b6a
] [formerly 20443a5d933e8268c1fb3f455df197a71fca1203 [formerlybd95bb6a4e
]] [formerly99e3707c5b
[formerlybd95bb6a4e
[formerly 0cda967cc9da9d2a08a0197db23d48c65f03be81]]] Former-commit-id:99e3707c5b
Former-commit-id: 2d757fef6618aded3efb26a4e6771f03101fe824 [formerly7590a56e0e
] Former-commit-id:b60635cd70
64 lines
No EOL
2.1 KiB
XML
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&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> |