2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2013-06-10 15:17:17 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-06-28 09:46:25 -04:00
|
|
|
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-06 14:16:14 -05:00
|
|
|
<bean id="distributionPatterns" class="com.raytheon.uf.edex.distribution.DistributionPatterns" factory-method="getInstance"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<bean id="distributionSrv" class="com.raytheon.uf.edex.distribution.DistributionSrv" />
|
|
|
|
<bean id="handleoupDistributionSrv" class="com.raytheon.uf.edex.distribution.DistributionSrv" />
|
|
|
|
<bean id="radarserverDistributionSrv" class="com.raytheon.uf.edex.distribution.DistributionSrv" />
|
|
|
|
|
|
|
|
<camelContext id="distro"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler"
|
|
|
|
autoStartup="false">
|
|
|
|
|
|
|
|
<endpoint id="refreshDistributionCron" uri="quartz://refreshDist/refreshDistRoute/?cron=${distribution.cron}"/>
|
|
|
|
|
|
|
|
<route id="distribution">
|
2014-02-21 06:50:59 -05:00
|
|
|
<from uri="jms-durable:queue:external.dropbox?concurrentConsumers=5&maxConcurrentConsumers=5"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<doTry>
|
|
|
|
<bean ref="distributionSrv" method="route" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:distribution?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="handleoupDistribution">
|
2014-02-21 06:50:59 -05:00
|
|
|
<from uri="jms-durable:queue:handleoup.dropbox"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<doTry>
|
|
|
|
<bean ref="handleoupDistributionSrv" method="route" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:distribution?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="radarserverDistribution">
|
2014-02-21 06:50:59 -05:00
|
|
|
<from uri="jms-durable:queue:radarserver.dropbox" />
|
2012-01-06 08:55:05 -06:00
|
|
|
<doTry>
|
|
|
|
<bean ref="radarserverDistributionSrv" method="route" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:distribution?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="refreshDistributionPatterns">
|
|
|
|
<from uri="refreshDistributionCron" />
|
|
|
|
<doTry>
|
2013-11-06 14:16:14 -05:00
|
|
|
<bean ref="distributionPatterns" method="refresh" />
|
2012-01-06 08:55:05 -06:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:refreshDistribution?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
<bean factory-bean="contextManager"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg ref="distro"/>
|
|
|
|
</bean>
|
|
|
|
</beans>
|