activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkeenan <kee...@p2sol.com>
Subject Re: Spring JmsTemplate receive() returns null with messages in Queue
Date Wed, 22 Oct 2008 13:12:27 GMT


James.Strachan wrote:
> 
> How many consumers do you have active? (See JMX). See these FAQ entries...
> 
> http://activemq.apache.org/i-do-not-receive-messages-in-my-second-consumer.html
> http://activemq.apache.org/what-is-the-prefetch-limit-for.html
> 

I am not the original poster, but I am having the same issue. I have tried
AMQ 5.1 and 5.2.  I am using Spring.NET with NMS (version 1.1 because it is
more thread safe). My prefetch is set to 1 but I have also tried 0 since I
am aiming for a "pull" model.

The behavior is unpredictable as far as how many messages are received by
the synchronous consumer before NULL is returned, but in almost every case
there are still messages left on the Queue.

I have turned on full logging at the broker, but I don't know quite what to
look for.  I'm not sure if NMS has any logging capability... I haven't
looked yet.

-- 
View this message in context: http://www.nabble.com/Spring-JmsTemplate-receive%28%29-returns-null-with-messages-in-Queue-tp18402053p20110439.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message