| | |
| | | <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>
|
| | |
| | | </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>
|
| | |
|