Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 12557 invoked from network); 15 Apr 2009 08:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 08:00:41 -0000 Received: (qmail 35158 invoked by uid 500); 15 Apr 2009 08:00:41 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 35138 invoked by uid 500); 15 Apr 2009 08:00:41 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 35128 invoked by uid 99); 15 Apr 2009 08:00:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 08:00:41 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gsim@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 08:00:34 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n3F80Ctx014572 for ; Wed, 15 Apr 2009 04:00:13 -0400 Received: from pobox.fab.redhat.com (pobox.fab.redhat.com [10.33.63.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3F80Bs8022451 for ; Wed, 15 Apr 2009 04:00:12 -0400 Received: from [10.11.12.42] (vpn-12-42.rdu.redhat.com [10.11.12.42]) by pobox.fab.redhat.com (8.13.1/8.13.1) with ESMTP id n3F80AwP004387 for ; Wed, 15 Apr 2009 04:00:11 -0400 Message-ID: <49E594FA.4050704@redhat.com> Date: Wed, 15 Apr 2009 09:04:10 +0100 From: Gordon Sim Organization: Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.,Registered in England and Wales under Company Registration No. 3798903,Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: REJECT Exception References: <1239744195086-2635446.post@n2.nabble.com> In-Reply-To: <1239744195086-2635446.post@n2.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-Virus-Checked: Checked by ClamAV on apache.org RickW wrote: > In a publisher client I'd like to detect the condition where the > broker rejects a message because (1) the target queue size has been > reached and (2) I've selected the REJECT QueueSizePolicy. According > to Red Hat's Messaging_User_Guide "The publisher of a message that > exceeds the limit receives an exception". What exception will be > thrown? (I assume catch(const exception& e) is too broad because > there are other exceptions that may have to be handled differently.) A qpid::framing::ResourceLimitExceededException (which is a subclass of qpid::SessionException) will be thrown. It is defined in qpid/framing/reply_exceptions.h. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org