2013-11-19 16:40:25 -05:00
|
|
|
<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
|
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-19 16:40:25 -05:00
|
|
|
<bean id="obsDecoder" class="com.raytheon.edex.plugin.obs.ObsDecoder" />
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2013-11-19 16:40:25 -05:00
|
|
|
<bean id="metarPointData" class="com.raytheon.edex.plugin.obs.metar.MetarPointDataTransform" />
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2013-11-19 16:40:25 -05:00
|
|
|
<bean id="obsSeparator" class="com.raytheon.edex.plugin.obs.metar.MetarSeparator" />
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2013-11-19 16:40:25 -05:00
|
|
|
<bean id="obsDistRegistry" factory-bean="distributionSrv" factory-method="register">
|
|
|
|
<constructor-arg value="obs" />
|
2014-02-21 06:50:59 -05:00
|
|
|
<constructor-arg value="jms-durable:queue:Ingest.obs" />
|
2013-11-19 16:40:25 -05:00
|
|
|
</bean>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2013-11-19 16:40:25 -05:00
|
|
|
<bean id="obsCamelRegistered" factory-bean="contextManager" factory-method="register"
|
|
|
|
depends-on="persistCamelRegistered,
|
|
|
|
shefCamelRegistered,
|
|
|
|
metarToHMDBCamelRegistered">
|
|
|
|
<constructor-arg ref="obs-camel" />
|
|
|
|
</bean>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
2013-11-19 16:40:25 -05:00
|
|
|
<camelContext id="obs-camel" xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler" autoStartup="false">
|
|
|
|
|
|
|
|
<!-- Begin METAR routes -->
|
|
|
|
<route id="metarIngestRoute">
|
|
|
|
<from uri="jms-durable:queue:Ingest.obs" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>obs</constant>
|
|
|
|
</setHeader>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<bean ref="obsDecoder" method="decode" />
|
|
|
|
<bean ref="dupElim" />
|
|
|
|
<bean ref="metarPointData" method="toPointData" />
|
|
|
|
<multicast>
|
|
|
|
<to uri="direct-vm:persistIndexAlert" />
|
|
|
|
<to uri="direct-vm:metarToShef" />
|
|
|
|
<to uri="direct-vm:metarToHMDB" />
|
|
|
|
</multicast>
|
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:metar?level=ERROR" />
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
2012-01-06 08:55:05 -06:00
|
|
|
</beans>
|