META-INF.messaging-core-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<?xml version="1.0"?> <beans default-destroy-method="destroy" default-init-method="afterPropertiesSet" xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" > <!-- Message bus --> <bean id="com.liferay.portal.kernel.messaging.MessageBus" class="com.liferay.portal.kernel.messaging.DefaultMessageBus" /> <bean id="com.liferay.portal.kernel.messaging.sender.MessageSender" class="com.liferay.portal.kernel.messaging.sender.DefaultMessageSender"> <property name="messageBus" ref="com.liferay.portal.kernel.messaging.MessageBus" /> </bean> <bean id="com.liferay.portal.kernel.messaging.sender.DirectSynchronousMessageSender" class="com.liferay.portal.kernel.messaging.sender.DirectSynchronousMessageSender"> <property name="messageBus" ref="com.liferay.portal.kernel.messaging.MessageBus" /> </bean> <bean id="com.liferay.portal.kernel.messaging.sender.SynchronousMessageSender" class="com.liferay.portal.kernel.messaging.sender.DefaultSynchronousMessageSender"> <property name="messageBus" ref="com.liferay.portal.kernel.messaging.MessageBus" /> <property name="portalUUID" ref="com.liferay.portal.kernel.uuid.PortalUUID" /> <property name="timeout" value="10000" /> </bean> <!-- JMX --> <bean id="com.liferay.portal.kernel.messaging.jmx.JMXMessageListener" class="com.liferay.portal.kernel.messaging.jmx.JMXMessageListener"> <property name="MBeanRegistry" ref="mBeanRegistry" /> <property name="messageBus" ref="com.liferay.portal.kernel.messaging.MessageBus" /> </bean> <!-- Destinations --> <bean id="destination.global" class="com.liferay.portal.kernel.messaging.ParallelDestination"> <property name="name" value="liferay/global" /> </bean> <bean id="destination.message_bus_default_response" class="com.liferay.portal.kernel.messaging.SynchronousDestination"> <property name="name" value="liferay/message_bus/default_response" /> </bean> <bean id="destination.message_bus_message_status" class="com.liferay.portal.kernel.messaging.ParallelDestination"> <property name="name" value="liferay/message_bus/message_status" /> </bean> <!-- Senders --> <bean id="messageSender.service_request_status" class="com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender"> <property name="destinationName" value="liferay/message_bus/message_status" /> <property name="messageSender" ref="com.liferay.portal.kernel.messaging.sender.MessageSender" /> </bean> <!-- Listeners --> <bean id="messageListener.global" class="com.liferay.portal.kernel.messaging.BridgingMessageListener"> <property name="singleDestinationMessageSender"> <bean class="com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender"> <property name="destinationName" value="liferay/global" /> <property name="messageSender" ref="com.liferay.portal.kernel.messaging.sender.MessageSender" /> </bean> </property> </bean> <!-- Configurator --> <bean id="messagingConfigurator.core" class="com.liferay.portal.kernel.messaging.config.DefaultMessagingConfigurator"> <property name="globalDestinationEventListeners"> <list> <ref bean="com.liferay.portal.kernel.messaging.jmx.JMXMessageListener" /> <!--<bean class="com.liferay.portal.kernel.messaging.GlobalDestinationEventListener"> <property name="ignoredDestinations"> <list> <value>liferay/global</value> </list> </property> <property name="messageListener" ref="messageListener.global" /> </bean>--> </list> </property> <property name="destinations"> <list> <!--<ref bean="destination.global" />--> <ref bean="destination.message_bus_default_response" /> <ref bean="destination.message_bus_message_status" /> </list> </property> <property name="messageBus"> <ref bean="com.liferay.portal.kernel.messaging.MessageBus" /> </property> </bean> </beans>