awips2/edexOsgi/com.raytheon.uf.edex.metartohmdbsrv/res/spring/metartohmdb-spring.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

35 lines
No EOL
1.5 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="metarToHMDBPurger" class="com.raytheon.uf.edex.metartohmdb.HMDBPurger">
<property name="purgeHours" value="48" />
</bean>
<camelContext id="metarToHMDBsrv-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="hmdbCron" uri="clusteredquartz://metartohmdb/hmdbpurge/?cron=${metartohmdb.cron}"/>
<!-- purge hmdb.rpt table -->
<route id="hmdbPurge">
<!-- Set the minutes explicitly -->
<from uri="hmdbCron" />
<to uri="jms-generic:queue:hmdbPurgeWork" />
</route>
<route id="hmdbPurgeWork">
<from uri="jms-generic:queue:hmdbPurgeWork" />
<doTry>
<bean ref="metarToHMDBPurger" method="purgeHMDBRpt" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:metartohmdb?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>