awips2/edexOsgi/com.raytheon.uf.edex.plugin.acarssounding/res/spring/acarssounding-ingest.xml
Nathan Bowler c4122ce5de Omaha #4999 Remove uri-less endpoints for Camel 2.16.0 compatibility.
Change-Id: Ic33c494505321794fab8450d145bdd64ade7d37c

Former-commit-id: 3f666a54689025afc4eb1559585f61123fce73c5
2015-10-29 15:19:05 -04:00

75 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="acarsAirports" class="com.raytheon.uf.edex.plugin.acarssounding.tools.AirportsBean" depends-on="acarsSoundingPluginName" >
</bean>
<bean id="acarsPersistObs" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSPersistObs" depends-on="acarsRegistered, acarsAirports" >
<constructor-arg ref="acarsAirports" />
</bean>
<bean id="acarsSounding" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSSounding" depends-on="acarsAirports, acarsRegistered" >
<constructor-arg ref="acarsSoundingPluginName" />
<constructor-arg ref="acarsAirports" />
</bean>
<bean id="acarsSoundingSplitter" class="com.raytheon.uf.edex.plugin.acarssounding.ACARSSoundingSplitter" >
</bean>
<camelContext id="acarsSoundingSrv-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="scheduledSoundingCron" uri="clusteredquartz://acars/createSounding/?cron=${acarssounding.cron}"/>
<!-- Schedule sounding creation -->
<route id="scheduledSounding">
<!-- Set the minutes explicitly -->
<!-- Deployed time slots -->
<from uri="scheduledSoundingCron" />
<!-- Development time slots
<from uri="clusteredquartz://acars/createSounding/?cron=00+0,5,10,15,20,25,30,35,40,45,50,55+*+*+*+?" />
-->
<split streaming="true">
<method bean="acarsSoundingSplitter" method="getSeparator"/>
<doTry>
<pipeline>
<setHeader headerName="pluginName">
<constant>acarssounding</constant>
</setHeader>
<setHeader headerName="dequeueTime">
<method bean="acarsSounding" method="getQueueTime" />
</setHeader>
<to uri="jms-durable:queue:acarssounding" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:acarssounding?level=ERROR"/>
</doCatch>
</doTry>
</split>
</route>
<route id="acarsSoundingProcessing">
<from uri="jms-durable:queue:acarssounding" />
<doTry>
<pipeline>
<bean ref="acarsSounding" method="processSounding" />
<to uri="direct-vm:indexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:acarssounding?level=ERROR"/>
</doCatch>
</doTry>
</route>
<route id="acarsSoundingRoute">
<from uri="direct-vm:acarsSounding"/>
<bean ref="acarsPersistObs" method="process" />
</route>
</camelContext>
</beans>