2013-03-27 17:12:52 -05:00
|
|
|
<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
|
2013-01-23 11:18:44 -05:00
|
|
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
|
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
2013-03-27 17:12:52 -05:00
|
|
|
|
|
|
|
<bean id="notificationHandler"
|
|
|
|
class="com.raytheon.uf.edex.datadelivery.event.handler.NotificationHandler">
|
|
|
|
<constructor-arg type="java.lang.String"
|
|
|
|
value="jms-generic:topic:notify.msg?destinationResolver=#qpidDurableResolver" />
|
|
|
|
<property name="notificationDao" ref="notificationDao" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean
|
|
|
|
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
|
|
|
<property name="staticMethod"
|
|
|
|
value="com.raytheon.uf.common.event.EventBus.register" />
|
|
|
|
<property name="arguments">
|
|
|
|
<list>
|
|
|
|
<ref bean="notificationHandler" />
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<!-- verify text product info for site, spawns in separate thread to not
|
|
|
|
delay start up -->
|
|
|
|
<bean id="notificationPurge"
|
|
|
|
class="com.raytheon.uf.edex.datadelivery.event.notification.NotificationPurge"
|
|
|
|
depends-on="ddEventRegister" />
|
|
|
|
|
|
|
|
<bean id="noitfyCamelRegistered" factory-bean="contextManager"
|
2013-01-23 11:18:44 -05:00
|
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
2013-03-27 17:12:52 -05:00
|
|
|
<constructor-arg ref="ddNotify-camel" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="ddNotify-camel" xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler" autoStartup="false">
|
|
|
|
|
2013-01-23 11:18:44 -05:00
|
|
|
<route id="notificationPurgeRoute">
|
2013-03-27 17:12:52 -05:00
|
|
|
<from uri="timer://notifiyPurge?period=60s" />
|
2013-01-23 11:18:44 -05:00
|
|
|
<doTry>
|
2013-03-27 17:12:52 -05:00
|
|
|
<bean ref="notificationPurge" method="purge" />
|
2013-01-23 11:18:44 -05:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-03-27 17:12:52 -05:00
|
|
|
<to
|
|
|
|
uri="log:purge?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true" />
|
2013-01-23 11:18:44 -05:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
2013-03-27 17:12:52 -05:00
|
|
|
|
2013-01-23 11:18:44 -05:00
|
|
|
</beans>
|