Listeners do not receive messages after a bit of inactivity.
Hi, all!
I setup my listener as I think of it in no particularly special way. But what I am noticing is that initially listeners are receiving messages, then there is a period where I stop sending anything for a while (10-20 minutes). After resuming message sending the listener hears nothing of it (my logs do not show that blockingqueueconsumer picked up anything). I am wondering what is the reason for this?
Here is my setup for the listener:
<bean id="cc.listener.container"class="org.springframewo rk.amqp.rabbit.listener.SimpleMessageListenerConta iner">
<property name="channelTransacted" value="false" />
<property name="concurrentConsumers" value="2" />
<property name="prefetchCount" value="1" />
<property name="connectionFactory" ref="rabbitConnectionFactory" />
<property name="acknowledgeMode" value="MANUAL" />
<property name="queues" value="cc.${instance.name}.queue" />
<property name="autoStartup" value="true" />
<property name="messageConverter" ref="rabbitmq.messageConverter" />
<property name="delegateListener" ref="rabbitmq.ccMessageListener" />
</bean>
does anyone have any ideas of what might be wrong with this? How to debug this problem? On rabbit's web UI I see that messages are un-acknowledged whenever this happens. Rabbit's logs do not indicate any problems. Logs on the client side of things are just regular polling:
Logs on the client side when this happens indicate nothing of interest just the usual polling message:
2012-10-12 15:15:35,251 DEBUG [org.springframework.amqp.rabbit.listener.BlockingQ ueueConsumer] - Retrieving delivery for Consumer: tag=[amq.ctag-A0B0-MDfTy5QiLUpgqXWNT], channel=Cached Rabbit Channel: AMQChannel(amqp://alex@localhost:5672/alex,3), acknowledgeMode=MANUAL local queue size=0
I am using spring amqp/rabbit release 1.1.2.RELEASE, amqp client 2.8.4 and my server is running 2.8.6 of rabbit.
Any help is greatly appreciated.
Cheers,
Alex.