[jboss-user] [JBoss Messaging] - Re: Message delivery delay > 30 sec sometimes
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Apr 11 09:40:08 EDT 2008
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/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.connectionfactory.attributes.slowconsumers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143439#4143439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143439
More information about the jboss-user
mailing list