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 93AEB109E2 for ; Tue, 27 May 2014 16:08:40 +0000 (UTC) Received: (qmail 48353 invoked by uid 500); 27 May 2014 16:08:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 48310 invoked by uid 500); 27 May 2014 16:08:40 -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 48300 invoked by uid 99); 27 May 2014 16:08:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 16:08:40 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 16:08:36 +0000 Received: by mail-la0-f45.google.com with SMTP id gl10so6697796lab.32 for ; Tue, 27 May 2014 09:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+ZyMtkAz9PQxNgGrDv6m0W+dY4NsfYIxUdK2jelejog=; b=lk/LBcuDp05T4L2N5SAN3XqLAyhby3nvcAFYJAAWVD7X+FBEfZLz8AV6J2tVjvzu9W vNkp7c8hTXZ15ykj3qfQ+oD7cgYU4m8HQ/qmOC1YAatBBFHE/d5YaZGhEJaDVnAD082X Pn3ZuJBxKakOksMDe38PdmPQ8xgrIWlYkgcfd2yBf8YjkUqfiHweqojLTouFPY1l5SYy WOpVLEalKAYOIkbCoAhlsInSApLG6p9iqe9arnsVaKI/y3LEA0xx46Ue7O6nZnY9S7IF 45iHiDcpjeRoHjlKjAzIiJR4I0uS0u62sW+XsQnQDvEjSn4qA5VJn7JE9pLRotaGwXEE nU3Q== MIME-Version: 1.0 X-Received: by 10.152.27.134 with SMTP id t6mr24740119lag.41.1401206895159; Tue, 27 May 2014 09:08:15 -0700 (PDT) Received: by 10.112.150.225 with HTTP; Tue, 27 May 2014 09:08:14 -0700 (PDT) In-Reply-To: <1400852274583-4681357.post@n4.nabble.com> References: <1400852274583-4681357.post@n4.nabble.com> Date: Tue, 27 May 2014 09:08:14 -0700 Message-ID: Subject: Re: Closing a Tcp Transport Connector From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e0160bf683e2e9504fa63e7f1 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160bf683e2e9504fa63e7f1 Content-Type: text/plain; charset=UTF-8 Can you post a test to reproduce? On Fri, May 23, 2014 at 6:37 AM, Musu wrote: > Hi all, > > It's been couple of days that I've been trying to figure it out what's > going > wrong with my application. > > I have a consumer client that uses an embedded broker that is using a tcp > transport connector and a remote producer that is constantly publishing a > single message on several queues sequentially. > > Generally a smooth shutdown process would be: > shutdown the remote to stop sending messages > > connection.close(); > session.close(); > consumer.close() > > Yet I would like to be able to simply close the connection between the > remote producer and the consumer keeping both of them alive, hence I simply > do a broker.removeConnection(transportConnector). > > In an example I set up, the consumer is not consuming the messages, so all > of the received messages remain in the queue. > > But right after closing the transport connector and querying the queue > sizes > I see a disparity in their sizes since one queue seems to be missing > messages, all the others are all consistent. > > I assume that closing the transport connector is a bit unconventional, but > I > can't seem to find another way to stop the broker from receiving messages > and let the consumers keep working. > > Thanks for your help > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Closing-a-Tcp-Transport-Connector-tp4681357.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --089e0160bf683e2e9504fa63e7f1--