awips2/edexOsgi/com.raytheon.uf.edex.registry.ebxml/res/spring/ebxml-eventbus.xml
Benjamin Phillippe 6cb73e63a1 Omaha #3350 Added user/role authentication. Added XACML authorization
Change-Id: Id307fdc04ba7a74c9e81650c7b4ba272405cf6df

Former-commit-id: 81d0249971d4004067b6aef672e00417ddb83b36
2014-07-16 10:49:24 -05:00

54 lines
No EOL
2.1 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 factory-bean="eventBus" factory-method="register">
<constructor-arg ref="RegistrySubscriptionManager" />
</bean>
<bean factory-bean="eventBus" factory-method="register">
<constructor-arg ref="RegistryFederationManager" />
</bean>
<bean factory-bean="eventBus" factory-method="register">
<constructor-arg ref="AuditableEventService" />
</bean>
<bean factory-bean="eventBus" factory-method="register">
<constructor-arg ref="RegistryGarbageCollector" />
</bean>
<bean factory-bean="eventBus" factory-method="register">
<constructor-arg ref="credentialCache" />
</bean>
<!-- TODO: This is a sample external endpoint for registry events.
It is dormant as long as the ${registry.event.external.publish} prop
is set to false. Which by default until Hazard Services uses this, will be.
When Hazard Services comes on line, the sampleExternalMessageHandler and the
route can go away. -->
<bean id="sampleExternalMessageHandler"
class="com.raytheon.uf.edex.registry.ebxml.publish.SampleExternalMessageHandler">
</bean>
<camelContext id="externalRegistryEventDelivery-camel"
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<endpoint id="externalRegistryEventDelivery"
uri="jms-generic:topic:registryExternalPublishTopic" />
<route id="registryExternalPublishTopic">
<from ref="externalRegistryEventDelivery" />
<doTry>
<pipeline>
<bean ref="serializationUtil" method="transformFromThrift"/>
<bean ref="sampleExternalMessageHandler" method="notify" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:externalRegistryEventDelivery?level=ERROR" />
</doCatch>
</doTry>
</route>
</camelContext>
</beans>