awips2/edexOsgi/com.raytheon.uf.edex.plugin.acarssounding/res/spring/acarssounding-ingest.xml
Nate Jensen 04d6f6654d Issue #1989 update spring xsd references to 3.1, fix ingestDat.sh
Change-Id: I478c31b72267fe7fd3b7a6559de87e8600c3c0c3

Former-commit-id: 3f3e0a788d [formerly 99b4a21414 [formerly b7b619e1a3a85ac8c5f22a36317e22e15ad557a2]]
Former-commit-id: 99b4a21414
Former-commit-id: 927da5cffb
2013-05-29 14:49:43 -05:00

74 lines
No EOL
3.4 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.common.dataplugin.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>
<bean id="acarsSoundingCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="acarsSoundingSrv-camel"/>
</bean>
<camelContext id="acarsSoundingSrv-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="acarsSoundingEndpoint"/>
<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+*+*+*+?" />
-->
<to uri="jms-generic:queue:scheduledSoundingWork" />
</route>
<route id="scheduledSoundingWork">
<from uri="jms-generic:queue:scheduledSoundingWork" />
<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>
<bean ref="acarsSounding" method="processSounding" />
<to uri="direct-vm:indexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:acarssounding?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</split>
</route>
<route id="acarsSoundingRoute">
<from uri="direct-vm:acarsSounding"/>
<bean ref="acarsPersistObs" method="process" />
</route>
</camelContext>
</beans>