awips2/edexOsgi/com.raytheon.uf.edex.plugin.obs.ogc/res/spring/obs-ogc-routes.xml
Dave Hladky d4407744c2 Issue #2097 Initial update for OGC services
Change-Id: I1bc8fc8a4c125bc79057c4af929c0495f0e5eb99

Former-commit-id: bef4b3cdbd [formerly 83dba7b655 [formerly 875006e24de0755cdd0dedc7b0afcf221bcbad49]]
Former-commit-id: 83dba7b655
Former-commit-id: d3bae9e065
2013-08-28 08:24:45 -05:00

44 lines
No EOL
1.6 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean class="com.raytheon.uf.edex.ogc.common.util.AddonPropsPostProcessor">
<constructor-arg>
<map value-type="java.lang.Class">
<entry key="obsProperties">
<map>
<entry key="dao" value="com.raytheon.uf.edex.plugin.obs.ogc.metar.MetarNotifyDao" />
</map>
</entry>
</map>
</constructor-arg>
</bean>
<bean id="obsOgcCamelRegistered" factory-bean="contextManager"
factory-method="register"
depends-on="persistCamelRegistered">
<constructor-arg ref="obs-ogc-camel"/>
</bean>
<camelContext id="obs-ogc-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<route id="obsLayerRoute">
<from uri="quartz://obs/layers?cron=0+*+*+*+*+?" />
<bean ref="metarLayerCollector" method="updateDB" />
</route>
<route id="metarsPurgeExpired">
<from uri="jms-generic:topic:Purge.expired.obs?destinationResolver=#qpidDurableResolver" />
<bean ref="metarLayerCollector" method="purgeExpired"/>
</route>
<route id="metarPurgeAll">
<from uri="jms-generic:topic:Purge.all.obs?destinationResolver=#qpidDurableResolver" />
<bean ref="metarLayerCollector" method="purgeAll"/>
</route>
</camelContext>
</beans>