Spring AMQP Pure Config

<?xml version=”1.0″ encoding=”UTF-8″?>
<beans xmlns=”http://www.springframework.org/schema/beans&#8221;
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xmlns:tx=”http://www.springframework.org/schema/tx&#8221; xmlns:p=”http://www.springframework.org/schema/p&#8221;
xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd”&gt;

<!– MQ Repository –>
<bean id=”mqRepository”
class=”com.ucore2.migration.commons.repository.engine.MQRepository” />

<bean id=”engineMQFactory”
class=”org.springframework.amqp.rabbit.connection.CachingConnectionFactory”
p:channelCacheSize=”25″ p:port=”${commons.mq.engine.server.port}”
p:host=”${commons.mq.engine.server.port}” />

<bean id=”engineAmqpTemplate” class=”org.springframework.amqp.rabbit.core.RabbitTemplate”
p:connectionFactory-ref=”engineMQFactory” p:replyTimeout=”60000″
p:messageConverter-ref=”textMessageConverter” />

<bean id=”rabbitAdmin” class=”org.springframework.amqp.rabbit.core.RabbitAdmin”>
<constructor-arg ref=”engineMQFactory” />
</bean>

<bean id=”engineMQ” class=”org.springframework.amqp.core.Queue”>
<constructor-arg value=”${commons.mq.engine.name}” />
</bean>

<bean id=”collectionMQ” class=”org.springframework.amqp.core.Queue”>
<constructor-arg value=”${commons.mq.collection.name}” />
</bean>

<!– message converter –>
<bean id=”textMessageConverter” class=”amqp.spring.converter.StringConverter” />

</beans>

 

Published by: beyondj2ee

Past SI AA, now I am pikicast developer in yellow mobile and daddy, Java, Spring, OpenSource, Application Architect :) Java Application Architect. mail : beyondj2ee@gmail.com twitter : twitter.com/beyondj2ee facebook : https:www.facebook.com/beyondj2ee blog: http:beyondj2ee.wordpress.com

Categories Uncategorized댓글 남기기

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Google+ photo

Google+의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

%s에 연결하는 중