qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajith Attapattu <rajit...@gmail.com>
Subject Re: Standard practice for recovering from resource exceeded exception
Date Wed, 17 Feb 2010 23:46:56 GMT
On Wed, Feb 17, 2010 at 4:17 PM, Andrew L <khayman218@hotmail.com> wrote:
> My system is sending messages asynchronously and they are enqueued much faster than they
are dequeued.  What is the standard method for handling a resource policy exceeded exception
from the broker?  Wait and retry sending after some time?  Is there a more pro-active method?

Are you using the c++ client?
If so you would need to re-create your session and then retry after sometime.

However the following may help in eliminating blind retries
If you know the queue-limit then you could do a queue query and get
the current message count.
This will not be much of a help if you have exceeded the byte count
(as opposed to the message count) as the above doesn't give you the
byte depth.

> Thanks.
> _________________________________________________________________
> Hotmail: Powerful Free email with security by Microsoft.
> http://clk.atdmt.com/GBL/go/201469230/direct/01/


Rajith Attapattu
Red Hat

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message