awips2/edexOsgi/com.raytheon.uf.edex.site/res/spring/site-request.xml

42 lines
1.9 KiB
XML
Raw Normal View History

2022-05-05 12:34:50 -05:00
<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.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="ValidateConfigRequestHandler"
class="com.raytheon.uf.edex.site.handlers.ValidateConfigRequestHandler" />
<bean id="activateSiteHandler"
class="com.raytheon.uf.edex.site.handlers.ActivateSiteHandler" />
<bean id="deactivateSiteHandler"
class="com.raytheon.uf.edex.site.handlers.DeactivateSiteHandler" />
<bean id="getActiveSitesHandler"
class="com.raytheon.uf.edex.site.handlers.GetActiveSitesHandler" />
<bean id="siteActivateNotifyFilter"
class="com.raytheon.uf.edex.site.notify.SiteActivateNotifyFilter" />
<bean id="siteActivationMonitor" class="com.raytheon.uf.edex.site.SiteActivationMonitor"
factory-method="getInstance" />
<camelContext id="siteActivationMonitoring"
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<route id="siteActivateNotify">
<from uri="jms-generic:topic:siteActivateNotification" />
<bean ref="serializationUtil" method="transformFromThrift" />
<filter>
<method ref="siteActivateNotifyFilter" method="isSiteActivateNotification" />
<bean ref="siteActivationMonitor" method="handleNotification" />
<filter>
<simple>${body} == null</simple>
<stop />
</filter>
<bean ref="serializationUtil" method="transformToThrift" />
<to
uri="jms-generic:topic:edex.alerts.siteActivate?timeToLive=60000" />
</filter>
</route>
</camelContext>
</beans>