Change-Id: I478c31b72267fe7fd3b7a6559de87e8600c3c0c3 Former-commit-id:3f3e0a788d
[formerly99b4a21414
[formerly b7b619e1a3a85ac8c5f22a36317e22e15ad557a2]] Former-commit-id:99b4a21414
Former-commit-id:927da5cffb
44 lines
No EOL
1.7 KiB
XML
44 lines
No EOL
1.7 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="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 factory-bean="eventBus" factory-method="register">
|
|
<constructor-arg ref="notificationHandler" />
|
|
</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"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="ddNotify-camel" />
|
|
</bean>
|
|
|
|
<camelContext id="ddNotify-camel" xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler" autoStartup="false">
|
|
|
|
<route id="notificationPurgeRoute">
|
|
<from uri="timer://notifiyPurge?period=60s" />
|
|
<doTry>
|
|
<bean ref="notificationPurge" method="purge" />
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to
|
|
uri="log:purge?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true" />
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
|
|
</beans> |