Former-commit-id:e197f23ce3
[formerly70e4ff30a6
[formerly d18b403b332dff67d1c85d4317bbceda337d1b41]] Former-commit-id:70e4ff30a6
Former-commit-id:c56be8a332
62 lines
No EOL
2.7 KiB
XML
62 lines
No EOL
2.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="cpgSrvDispatcher" class="com.raytheon.uf.edex.cpgsrv.CPGDispatcher" depends-on="commonTimeRegistered"/>
|
|
|
|
<bean id="cpgsrvCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="cpgsrv-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="cpgsrv-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<route id="cpgProcessAlerts">
|
|
<from uri="direct-vm:processCPGAlerts"/>
|
|
<bean ref="toDataURI" method="toDataURI"/>
|
|
<to uri="vm:stageNotification"/>
|
|
</route>
|
|
</camelContext>
|
|
<camelContext id="clusteredCpgSrvRoutes"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!-- Need to reroute to a queue to allow for multiple jms consumers -->
|
|
<route id="cpgsrvTopicToQueueRoute">
|
|
<from uri="jms-generic:topic:edex.alerts"/>
|
|
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
|
<doTry>
|
|
<multicast>
|
|
<to uri="jms-generic:queue:cpgsrvFiltering"/>
|
|
<to uri="jms-generic:queue:scanCpgsrvFiltering"/>
|
|
<to uri="jms-generic:queue:ffmpCpgsrvFiltering"/>
|
|
</multicast>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:cpgSrv?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
<route id="cpgsrvListenerRoute">
|
|
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
|
<from uri="jms-generic:queue:cpgsrvFiltering?concurrentConsumers=5&destinationResolver=#qpidDurableResolver"/>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
<bean ref="cpgSrvDispatcher" method="matchURIs"/>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:cpgSrv?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
<bean factory-bean="clusteredCamelContextMgr"
|
|
factory-method="register">
|
|
<constructor-arg ref="clusteredCpgSrvRoutes" />
|
|
</bean>
|
|
</beans> |