All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.mail-spring.xml Maven / Gradle / Ivy

<?xml version="1.0"?>

<beans
	default-destroy-method="destroy"
	default-init-method="afterPropertiesSet"
	xmlns="http://www.springframework.org/schema/beans"
	xmlns:util="http://www.springframework.org/schema/util"
	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.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
>
	<bean class="com.liferay.mail.service.impl.MailServiceImpl" id="com.liferay.mail.kernel.service.MailService" />

	<!-- Messaging -->

	<bean class="com.liferay.mail.messaging.MailMessageListener" id="messageListener.mail" />
	<bean class="com.liferay.portal.kernel.messaging.config.DefaultMessagingConfigurator" id="messagingConfigurator.mail">
		<property name="destinationConfigurations">
			<util:set>
				<bean class="com.liferay.portal.kernel.messaging.DestinationConfiguration">
					<constructor-arg name="destinationName" value="liferay/mail" />
					<constructor-arg name="destinationType">
						<util:constant static-field="com.liferay.portal.kernel.messaging.DestinationConfiguration.DESTINATION_TYPE_PARALLEL" />
					</constructor-arg>
				</bean>
			</util:set>
		</property>
		<property name="messageListeners">
			<map key-type="java.lang.String" value-type="java.util.List">
				<entry key="liferay/mail">
					<list value-type="com.liferay.portal.kernel.messaging.MessageListener">
						<ref bean="messageListener.mail" />
					</list>
				</entry>
			</map>
		</property>
	</bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy