Maybe compare your code/use case to some of the many unit tests in the
org/apache/activemq package. All of those tests work and they may
provide an insight.

Here is one example:

http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JMSConsumerTest.java?view=markup

On 8 August 2012 08:29, rmn190 <rmn...@gmail.com> wrote:
> I have a JMS broker running, and it has a queue containing enought pending
> message.
>
> at the same time, I have a consumer client, which asynchronously get message
> from the queue. but the consumer client does not get message everytime. and
> some time, it can recieve several message.
>
> so it seems abnormal, right?
>
> and what is the reason? how can I resolve it?
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/activemq-cannot-recieve-any-message-everytime-from-a-queue-while-the-queue-has-enough-message-pending-tp4654881.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://fusesource.com
http://blog.garytully.com

Reply via email to