Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 60D08200BBB for ; Thu, 27 Oct 2016 00:50:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5F815160B02; Wed, 26 Oct 2016 22:50:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A7218160AEE for ; Thu, 27 Oct 2016 00:50:07 +0200 (CEST) Received: (qmail 59484 invoked by uid 500); 26 Oct 2016 22:50: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 59472 invoked by uid 99); 26 Oct 2016 22:50:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 22:50:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EA659C76A2 for ; Wed, 26 Oct 2016 22:50:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.398 X-Spam-Level: X-Spam-Status: No, score=0.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IdgotUO1SRkh for ; Wed, 26 Oct 2016 22:50:03 +0000 (UTC) Received: from mail-yb0-f175.google.com (mail-yb0-f175.google.com [209.85.213.175]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0A73C5FC6C for ; Wed, 26 Oct 2016 22:49:36 +0000 (UTC) Received: by mail-yb0-f175.google.com with SMTP id f97so8956832ybi.1 for ; Wed, 26 Oct 2016 15:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=uivJq42DDp1fmPT/CmqXjtumnldZT6HRLYUXiBDz5ho=; b=vkzeBvECTdF08opbP1uEB3WGNEz9xZJcpZYtivdCyA20qQ3000iP1YB1C8eR6I6HoB /4N+wyxLxUQ+wElDLOTVUbsGn3ibwUmhjLUEzxxSWRVMsoaszB7515HMfVnpCyxGAJ5f vM0Pb3dl8y5VK6laVt4tlTkJsCMYGAe/dAsYsoCeVmVQpjlcHDSnX9Gs9dDN/80xa8vs YVuvUl3i6ZCI4oVVm8CYpIDe/fcEPBpNG/2WRRH63y85X04EYjhQMEQYfpv4/jsY9ikA wppt40ul3lUv7nkYfdMtMmwqnMs9gKrPeEO5LaoRtuxe6fFFYnVsX5UJWWFOOMhrO5zJ QuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=uivJq42DDp1fmPT/CmqXjtumnldZT6HRLYUXiBDz5ho=; b=gD9NdiZ/+BBOIkgHUlC5woEcrUsyAEKzJRE4GZWTI3AkbqddlCb1VW9mUI0HHUX2uY vbtKEkrmdI03tOX3eBTYtn6i5LbQfAgVxn89MpAYvTtu1i9wPCZP9Xr0BomLNFiiQAoR KoYslBrxeQlRx86k4wjoyTXLAG4x/BcTSaMSXnt/OnhnWdpRNAtBgHxDBKF/rVnoKDMO KiUwpxLXMNSdjlu2uQU0KHT7AX9CdIb6QtNHGaJ4vPelNuHsSpmyyRV/N+iQS6g8j58B bAaGbfdSGTIPzI5j3stVmWONdGRqSd3IiQblbTbl1XdvyKuxV/jZryz3TeTcMVcsYSIb IYtQ== X-Gm-Message-State: ABUngvdJpDelhS1Gc0hi+HsuT3oznI4dHgo9V38rGKYNbsUJKsF+e+xjAFDoZwsKpTmAwvbBdqPX3RFJydkPIQ== X-Received: by 10.37.64.134 with SMTP id n128mr4059677yba.183.1477522174912; Wed, 26 Oct 2016 15:49:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.202.82 with HTTP; Wed, 26 Oct 2016 15:49:34 -0700 (PDT) In-Reply-To: References: <1477325105636-4718372.post@n4.nabble.com> <1622398147.6473615.1477325870393.JavaMail.zimbra@redhat.com> <1477383152564-4718433.post@n4.nabble.com> From: Clebert Suconic Date: Wed, 26 Oct 2016 18:49:34 -0400 Message-ID: Subject: Re: Avoid always creating a subscription to a topic when connecting as durable subscriber? To: users@activemq.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 26 Oct 2016 22:50:08 -0000 you will have to check on the server if you have the subscription. +1 on Tim Bain. about using JMX. If you were using ARtemis, you would be able to query for the existence of the queue using the core API as well. On Wed, Oct 26, 2016 at 3:11 PM, Tim Bain wrote: > You could determine if you have an existing subscription via JMX. > http://activemq.apache.org/jmx.html > > On Oct 25, 2016 2:21 AM, "KrisVH" wrote: > > The broker is currently 5.13.1, and the client is a WSO2 ESB. > > The connection is made with Java code, this should be all the relevant code: > > > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/Avoid-always-creating-a-subscription-to-a- > topic-when-connecting-as-durable-subscriber-tp4718372p4718433.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Clebert Suconic