From users-return-18039-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Feb 17 18:03:14 2009 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 94478 invoked from network); 17 Feb 2009 18:03:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 18:03:14 -0000 Received: (qmail 58911 invoked by uid 500); 17 Feb 2009 18:03:08 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58885 invoked by uid 500); 17 Feb 2009 18:03:08 -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 58873 invoked by uid 99); 17 Feb 2009 18:03:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 10:03:08 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 18:02:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LZUHG-0007ZC-3z for users@activemq.apache.org; Tue, 17 Feb 2009 10:02:38 -0800 Message-ID: <22062875.post@talk.nabble.com> Date: Tue, 17 Feb 2009 10:02:38 -0800 (PST) From: Eric-AWL To: users@activemq.apache.org Subject: Correctly leaving a network of broker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: eric.vincent@atosorigin.com X-Virus-Checked: Checked by ClamAV on apache.org Hi I have two Java processes with their own embedded broker, linked together with a multicast network of broker. I start the "server process" which first creates its broker and connects itself to it. Then, I start the "client process" which first creates its broker, and connects itself to it. The network of broker is automatically created and all my messages sent by the client to the server are received. And all answers sent by the server are received by the client. Very well ! Then I ask the client to gracefully disconnect from its broker (JMS disconnect). I think disconnect is OK, then my process wants to stop, but has to wait until I break "CTRL-C" my server process. I imagine there are some active threads which don't want to stop. Is there a good way to gracefully ask my client to stop the ActiveMQ threads which are used by the network of broker ? Until now, I only use JMS methods. And I prefer to continue, if it's possible (a connection parameter ?) Thank you Eric -- View this message in context: http://www.nabble.com/Correctly-leaving-a-network-of-broker-tp22062875p22062875.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.