Change-Id: I2d53bae64dca80e20777407c62ce7cc7546e3fae Former-commit-id:d55e7a0eda
[formerlye91406ab10
] [formerlya308b27c2f
[formerly 3d386df8a1def460f81468154964603e7c1edbe8]] Former-commit-id:a308b27c2f
Former-commit-id:d9a481f542
84 lines
No EOL
3.4 KiB
XML
84 lines
No EOL
3.4 KiB
XML
<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"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
|
|
|
|
|
<bean id="uriAggregator" class="com.raytheon.uf.edex.esb.camel.DataUriAggregator" />
|
|
<bean id="toDataURI" class="com.raytheon.uf.edex.esb.camel.ToDataURI" />
|
|
|
|
<bean id="persist" class="com.raytheon.edex.services.PersistSrv" factory-method="getInstance"/>
|
|
<bean id="index" class="com.raytheon.edex.services.IndexSrv"/>
|
|
|
|
<bean id="persistCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register">
|
|
<constructor-arg ref="persist-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="persist-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
|
|
|
<!-- Generic persist and indexing
|
|
Intended for routes that need persisting to HDF5,
|
|
Indexing but no alert processing
|
|
-->
|
|
<route id="persistIndex">
|
|
<from uri="directvm:persistIndex"/>
|
|
<bean ref="persist" method="persist"/>
|
|
<bean ref="index" method="index"/>
|
|
<bean ref="processUtil" method="log"/>
|
|
</route>
|
|
|
|
<!-- Generic persist, index and alert route
|
|
Intended for routes that need persisting to HDF5,
|
|
Indexing and Alerting
|
|
-->
|
|
<route id="persistIndexAlert">
|
|
<from uri="directvm:persistIndexAlert"/>
|
|
<bean ref="persist" method="persist"/>
|
|
<bean ref="index" method="index"/>
|
|
<bean ref="processUtil" method="log"/>
|
|
<bean ref="toDataURI" method="toDataURI"/>
|
|
<to uri="vm:stageNotification"/>
|
|
</route>
|
|
|
|
<!-- Generic index and alert route
|
|
Intended for routes that need Indexing and Alerting
|
|
-->
|
|
<route id="indexAlert">
|
|
<from uri="directvm:indexAlert"/>
|
|
<bean ref="index" method="index"/>
|
|
<bean ref="processUtil" method="log"/>
|
|
<bean ref="toDataURI" method="toDataURI"/>
|
|
<to uri="vm:stageNotification"/>
|
|
</route>
|
|
|
|
<route id="notificationAggregation">
|
|
<from uri="vm:stageNotification"/>
|
|
<bean ref="uriAggregator" method="addDataUris" />
|
|
<!--
|
|
<multicast>
|
|
<pipeline>
|
|
<bean ref="uriAggregator" method="addDataUris" />
|
|
</pipeline>
|
|
<pipeline>
|
|
<to uri="jms-generic:queue:subscriptions" />
|
|
</pipeline>
|
|
</multicast>
|
|
-->
|
|
</route>
|
|
|
|
<route id="notificationTimer">
|
|
<from uri="timer://notificationTimer?fixedRate=true&period=5000" />
|
|
<filter>
|
|
<method bean="uriAggregator" method="hasUris" />
|
|
<bean ref="uriAggregator" method="sendQueuedUris" />
|
|
<bean ref="serializationUtil" method="transformToThrift" />
|
|
<to uri="jms-generic:topic:edex.alerts?timeToLive=60000&deliveryPersistent=false"/>
|
|
</filter>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |