From users-return-29164-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Oct 25 18:08:55 2011 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 3E7CF9CBD for ; Tue, 25 Oct 2011 18:08:55 +0000 (UTC) Received: (qmail 17719 invoked by uid 500); 25 Oct 2011 18:08:54 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 17670 invoked by uid 500); 25 Oct 2011 18:08:54 -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 17603 invoked by uid 99); 25 Oct 2011 18:08:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 18:08:54 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of jacobhameiri@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 18:08:47 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RIlQJ-0006Cd-1M for users@activemq.apache.org; Tue, 25 Oct 2011 11:08:27 -0700 Date: Tue, 25 Oct 2011 11:08:27 -0700 (PDT) From: JacobS To: users@activemq.apache.org Message-ID: <1319566107020-3937653.post@n4.nabble.com> Subject: Producer blocks on send method when not connected to broker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.