When you created this consumer:
/** !!! if you comment the line below the delay is not present any more !!!*/
| MessageConsumer consumer = session.createConsumer(queue);
|
It will actually receive messages, but you will never call consumer.receive();
As the message was received on the "dead" consumer, the message will eventually
get back to the queue when you close the consumer, and that's probably the delay you
are seeing.
We do this for performance reasons, where we cache the messages on the consumer. Now if
you can actually have a situation like this on your system, you could set the option
slowConsumers=true on the ConnectionFactory.
http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143439#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...