Update test Spring configurations Change-Id: I63a6d12b03768223a86c1a309bc438758bb61f2e Former-commit-id:d2d50e7d8b
[formerly a862a4d1b9b34b3f93e54480b9fc482a234db918] Former-commit-id:ecf3f2e300
33 lines
1.4 KiB
XML
33 lines
1.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="archivePurge" class="com.raytheon.uf.edex.archive.purge.ArchivePurger" />
|
|
|
|
<camelContext id="archivePurge-context"
|
|
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
|
|
|
<endpoint id="archivePurgeCron"
|
|
uri="clusteredquartz://archive/archivePurgeScheduled/?cron=${archivePurge.cron}" />
|
|
|
|
<!-- Run archivePurge on Scheduled timer -->
|
|
<route id="archivePurgeScheduled">
|
|
<from uri="archivePurgeCron" />
|
|
<to uri="jms-generic:queue:archivePurgeScheduledWork" />
|
|
</route>
|
|
|
|
<route id="archivePurgeScheduledWork">
|
|
<from uri="jms-generic:queue:archivePurgeScheduledWork" />
|
|
<doTry>
|
|
<bean ref="archivePurge" method="purge" />
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to
|
|
uri="log:archivePurge?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true" />
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
|
|
</beans>
|