From 263d19bc5dc69dbfc3c9c9142ac20ff4895ebcf5 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Tue, 07 Nov 2017 10:38:17 +0800
Subject: [PATCH] test

---
 src/main/resources/spring/rabbitmq.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/spring/rabbitmq.xml b/src/main/resources/spring/rabbitmq.xml
index 58b7444..ae1e021 100644
--- a/src/main/resources/spring/rabbitmq.xml
+++ b/src/main/resources/spring/rabbitmq.xml
@@ -10,7 +10,7 @@
     <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"/>
+        <property name="password" value="guest_pass"/>
         <property name="channelCacheSize" value="8"/>
         <property name="port" value="5672"/>
     </bean>
@@ -27,11 +27,11 @@
         </rabbit:bindings>
     </rabbit:fanout-exchange>
 
-    <rabbit:queue name="devices_storage_data" durable="true" auto-delete="false" exclusive="false"/>
+    <rabbit:queue name="devices_storage_data" durable="false" auto-delete="true" exclusive="true"/>
 
     <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