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 22346D573 for ; Wed, 14 Nov 2012 14:03:31 +0000 (UTC) Received: (qmail 21685 invoked by uid 500); 14 Nov 2012 14:03:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21551 invoked by uid 500); 14 Nov 2012 14:03:30 -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 21530 invoked by uid 99); 14 Nov 2012 14:03:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 14:03:30 +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.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-ye0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 14:03:25 +0000 Received: by mail-ye0-f171.google.com with SMTP id m11so60870yen.2 for ; Wed, 14 Nov 2012 06:03:04 -0800 (PST) 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=xpXaViRM3+Ol7FI3lxzE/GEtwr2doh1XqhOW4lUKaEo=; b=QpRAElbiVo4FoNsICQeEwLbkbMMKlTsWc2ceD4corjmnpg6zM85uUBQB267X+muMNv 6ov+oX9FZKKOd07mPYH8CYZcrm3I0VNPZMA0A6WmTlQLdTItLQ6X7Gwz+nn75uCKNEKE jACrIfyduAx94MeCMwK+LEiSbRn8y9lsrv2ZOD1wkemHn+e9hTdB0UDhgbVQJcOFnMWB 4Gj3Awkr1MKU61PwBDMYcg4KCl9nSnjNY3fMBDLtiANAoexlqs8U/pTuy4+lXXaVZ8RJ q5pSBOR6T7+ioc9g14N+pHKQwd+eglvNgx0Wo1owuvLVqSO0FKZ4BXJ2IJtSvw5FEeyJ ua3A== MIME-Version: 1.0 Received: by 10.58.187.234 with SMTP id fv10mr31795495vec.8.1352901784339; Wed, 14 Nov 2012 06:03:04 -0800 (PST) Received: by 10.220.38.196 with HTTP; Wed, 14 Nov 2012 06:03:04 -0800 (PST) In-Reply-To: References: <1352876993048-4659299.post@n4.nabble.com> <201211141522210943478@gmail.com> Date: Wed, 14 Nov 2012 07:03:04 -0700 Message-ID: Subject: Re: blocking on multiple topics From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=047d7b6d911045834b04ce74fee2 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6d911045834b04ce74fee2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Not sure there is a way to do what you're asking out of the box... you could subscribe to both topic A and B using composite destinations, but that would give you messages for both A and B, but not block until both A and B had a message. you might have to do some client-side coding for that. http://activemq.apache.org/composite-destinations.html On Wed, Nov 14, 2012 at 12:37 AM, wheels wrote: > Considered that option, but in that case the consumer would also receive > messages for topics C,D,E which he was not interested in. So I was > wondering if there was a way to prevent that. > > Kind regards, > Marc > > 2012/11/14 kimmking [via ActiveMQ] < > ml-node+s2283324n4659300h23@n4.nabble.com> > > > > > 1 consumer=EF=BC=8C many topics ? > > why not use 1 topics and a different selector in every consumer to > > separate its interested message=EF=BC=9F > > > > > > *From:* [hidden email]< > http://user/SendEmail.jtp?type=3Dnode&node=3D4659300&i=3D0> > > *Date:* 2012-11-14 15:09 > > *To:* [hidden email]< > http://user/SendEmail.jtp?type=3Dnode&node=3D4659300&i=3D1> > > *Subject:* blocking on multiple topics > > Hi, > > > > I am an JMS/ActiveMQ newbi so please be patient. > > > > I have the following situation, I have one or more consumers interested > in > > a topic, so far so good, if I understand correctly I can do this with t= he > > publish/subscribe context and each client receives each published > message. > > And as I understand the client blocks until a new message is published. > > > > But what I really need is to allow consumers to be interested in multip= le > > topics, so we have topic A and B (completely different topics) and I wa= nt > > to block a consumer until a message is posted to A and B. > > > > Note that it possible that we have also topcis C,D,E but the consumer (= or > > at least some of them) are not interested in those topics. > > > > What is the most efficient way to have a consumer block until a message > is > > published to the topics the consumer is interested in (but not be > notified > > of messages of other topics he is not interested in) > > > > Regards, > > Marc > > > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussi= on > > below: > > > > > http://activemq.2283324.n4.nabble.com/blocking-on-multiple-topics-tp46592= 99.html > > To unsubscribe from ActiveMQ - User, click here. > > NAML< > http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=3Dma= cro_viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.names= paces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.w= eb.template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3Aemail= .naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aem= ail.naml > > > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussi= on > > below: > > > > > http://activemq.2283324.n4.nabble.com/blocking-on-multiple-topics-tp46592= 99p4659300.html > > To unsubscribe from blocking on multiple topics, click here< > http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=3Dun= subscribe_by_code&node=3D4659299&code=3DbWFyY28ubGFwb25kZXJAZ21haWwuY29tfDQ= 2NTkyOTl8LTEwMTU2NjMyODA=3D > > > > . > > NAML< > http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=3Dma= cro_viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.names= paces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.w= eb.template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3Aemail= .naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aem= ail.naml > > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/blocking-on-multiple-topics-tp46592= 99p4659301.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --=20 *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --047d7b6d911045834b04ce74fee2--