Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49FCA10589 for ; Thu, 29 Aug 2013 12:19:41 +0000 (UTC) Received: (qmail 12653 invoked by uid 500); 29 Aug 2013 12:19:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 12623 invoked by uid 500); 29 Aug 2013 12:19:39 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 12615 invoked by uid 99); 29 Aug 2013 12:19:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 12:19:38 +0000 X-ASF-Spam-Status: No, hits=4.4 required=5.0 tests=HTML_MESSAGE,SPF_FAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of joakim@mnemonic.no) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 12:19:32 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VF1BC-0003Gk-Gp for users@activemq.apache.org; Thu, 29 Aug 2013 05:18:26 -0700 Date: Thu, 29 Aug 2013 05:18:11 -0700 (PDT) From: jvbrandis To: users@activemq.apache.org Message-ID: <4ECCA188-5A1A-4304-B971-FA1FB01636C7@mnemonic.no> In-Reply-To: <521F212F.6000203@gmail.com> References: <1377718724494-4670862.post@n4.nabble.com> <8C78A6A5-61C9-4428-81C1-38AA1942FF1D@mnemonic.no> <521F212F.6000203@gmail.com> Subject: Re: Clients not receiving ResourceAllocationException in transacted sessions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_138457_22868440.1377778691504" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_138457_22868440.1377778691504 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >=20 > What's happening is that inside a transaction the normal behavior is to= =20 > send messages without waiting for a response from the broker (async)=20 > which is why the only way the exception gets noticed is by an exception= =20 > listener. You can however configure this to work by using the option=20 > 'setUseAsyncSend' on the ActiveMQConnectionFactory to force all send to= =20 > wait for a response which will then cause the exception to be thrown=20 > from the producer send.=20 >=20 > You can set this on the connection URI via: "tcp:xxx:x?useAsyncSend=3Dfal= se"=20 Thanks! I still think that it is bad form that commit() is completed without error = when any (or all!) my messages are discarded. Even if the message send()-operation is async, the commit() should be sync= =E2=80=A6. Anyway, thank you for the configuration tip! -- View this message in context: http://activemq.2283324.n4.nabble.com/Clients= -not-receiving-ResourceAllocationException-in-transacted-sessions-tp4670862= p4670904.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_138457_22868440.1377778691504--