thank you prabugp.

These are my codes listed below,

myQueue = session.createQueue(queueName);
myCons = session.createConsumer(myQueue);
inMsg = myCons.receiveNoWait();

so sure that I've listened to the right queue and no message selectors as
well.
When the program runs into myCons.receiveNoWait(), it still remains several
pending messages in the queue.
But inMsg was null as return.

It seems not make sense that pending messages are not available.
(receiveNoWait() should retrieve the message, if there is one available in
the queue to be picked up.)




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/consumer-receiveNoWait-question-tp4656435p4656614.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to