From adb75b38942559fad1d823a22666fceb0cc0df83 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Sat, 11 Nov 2017 15:43:47 +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..55fe160 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="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