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 7D9549833 for ; Thu, 27 Oct 2011 09:09:07 +0000 (UTC) Received: (qmail 65369 invoked by uid 500); 27 Oct 2011 09:09:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65219 invoked by uid 500); 27 Oct 2011 09:09:06 -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 65207 invoked by uid 99); 27 Oct 2011 09:09:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 09:09:05 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of martinc@gmx.at designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 27 Oct 2011 09:08:57 +0000 Received: (qmail invoked by alias); 27 Oct 2011 09:08:37 -0000 Received: from mail-ww0-f41.google.com (EHLO mail-ww0-f41.google.com) [74.125.82.41] by mail.gmx.net (mp025) with SMTP; 27 Oct 2011 11:08:37 +0200 X-Authenticated: #423381 X-Provags-ID: V01U2FsdGVkX1+JDwp+OOiJY3QvPifgo3jfwH+4qagXQjbo6xShrG UdcP8rpItWPI6O Received: by wwe32 with SMTP id 32so520388wwe.2 for ; Thu, 27 Oct 2011 02:08:36 -0700 (PDT) Received: by 10.227.204.204 with SMTP id fn12mr14698074wbb.21.1319706516065; Thu, 27 Oct 2011 02:08:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.79.70 with HTTP; Thu, 27 Oct 2011 02:08:15 -0700 (PDT) In-Reply-To: <1319566107020-3937653.post@n4.nabble.com> References: <1319566107020-3937653.post@n4.nabble.com> From: "Martin C." Date: Thu, 27 Oct 2011 11:08:15 +0200 Message-ID: Subject: Re: Producer blocks on send method when not connected to broker To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, what transport are you using? If you are using the failover transport, look at the failover options at http://activemq.apache.org/failover-transport-reference.html, especially at the timeout. I noticed that the sendTimeout is not always used when using a failover transport, if the connection itself breaks. Best regards, Martin On Tue, Oct 25, 2011 at 8:08 PM, JacobS wrote: > I am using ActiveMQ 5.5 and I have a MessageProducer that is sending messages > to a broker. > I set this Producers SendTimeout to 10000 (in the connectionFactory ) but > when the connection with the broker breaks the producer blocks on send > infinitely. This causes a growing memory leak in my application (which often > is not connected to a broker and messages are trying to be sent in a new > thread each time) > What an I doing wrong ? > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Producer-blocks-on-send-method-when-not-connected-to-broker-tp3937653p3937653.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >