From 174ce09fe8297b9283ba5be138245fea886d9e2a Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Sun, 12 Nov 2017 19:52:18 +0800
Subject: [PATCH] test
---
src/main/resources/spring/rabbitmq.xml | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/resources/spring/rabbitmq.xml b/src/main/resources/spring/rabbitmq.xml
index 8a95633..3eefb5f 100644
--- a/src/main/resources/spring/rabbitmq.xml
+++ b/src/main/resources/spring/rabbitmq.xml
@@ -8,11 +8,11 @@
<!-- rabbitMQ������ -->
<bean id="rabbitConnectionFactory" class="org.springframework.amqp.rabbit.connection.CachingConnectionFactory">
- <constructor-arg value="116.62.12.115"/>
- <property name="username" value="guest"/>
- <property name="password" value="guest_pass"/>
- <property name="channelCacheSize" value="8"/>
- <property name="port" value="5672"/>
+ <constructor-arg value="${rabbitmq.host}"/>
+ <property name="username" value="${rabbitmq.username}"/>
+ <property name="password" value="${rabbitmq.password}"/>
+ <property name="channelCacheSize" value="${rabbitmq.channelCacheSize}"/>
+ <property name="port" value="${rabbitmq.port}"/>
</bean>
<rabbit:admin connection-factory="rabbitConnectionFactory"/>
@@ -27,11 +27,11 @@
</rabbit:bindings>
</rabbit:fanout-exchange>
- <rabbit:queue name="devices_storage_data" durable="false" auto-delete="true" exclusive="true"/>
+ <rabbit:queue name="devices_storage_data" durable="false" auto-delete="true" exclusive="false"/>
<bean id="amqpMsgListener" class="com.moral.monitor.listener.TaskListener"/>
- <rabbit:listener-container connection-factory="rabbitConnectionFactory" acknowledge="auto">
+ <rabbit:listener-container connection-factory="rabbitConnectionFactory" acknowledge="auto" concurrency="10">
<rabbit:listener queues="devices_storage_data" ref="amqpMsgListener" />
</rabbit:listener-container>
--
Gitblit v1.8.0