Return-Path: Delivered-To: apmail-incubator-qpid-users-archive@locus.apache.org Received: (qmail 40375 invoked from network); 9 Apr 2008 11:45:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 11:45:53 -0000 Received: (qmail 75018 invoked by uid 500); 9 Apr 2008 11:45:53 -0000 Delivered-To: apmail-incubator-qpid-users-archive@incubator.apache.org Received: (qmail 75003 invoked by uid 500); 9 Apr 2008 11:45:53 -0000 Mailing-List: contact qpid-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: qpid-users@incubator.apache.org Delivered-To: mailing list qpid-users@incubator.apache.org Received: (qmail 74994 invoked by uid 99); 9 Apr 2008 11:45:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 04:45:53 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 11:45:03 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m39BjLr3031907 for ; Wed, 9 Apr 2008 07:45:21 -0400 Received: from file.rdu.redhat.com (file.rdu.redhat.com [10.11.255.147]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m39BjLkb027311 for ; Wed, 9 Apr 2008 07:45:21 -0400 Received: from [10.32.4.90] (vpn-4-90.str.redhat.com [10.32.4.90]) by file.rdu.redhat.com (8.13.1/8.13.1) with ESMTP id m39BjKMU023478 for ; Wed, 9 Apr 2008 07:45:20 -0400 Message-ID: <47FCAC2D.4040600@redhat.com> Date: Wed, 09 Apr 2008 12:44:45 +0100 From: Gordon Sim Organization: Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.,Registered in England and Wales under Company Registration No. 3798903,Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) User-Agent: Thunderbird 1.5.0.2 (X11/20060501) MIME-Version: 1.0 To: qpid-users@incubator.apache.org Subject: Re: publish to multiple clients References: <47FCA4B0.1080606@intstream.fi> In-Reply-To: <47FCA4B0.1080606@intstream.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-Virus-Checked: Checked by ClamAV on apache.org Kalle K�rkk�inen wrote: > I'm constructing the broadcast queue like this: > > broadcastChannel = session.createQueue(id+"-broadcast"); > broadcaster = session.createProducer(broadcastChannel); > > and sending stuff to it like this: > > JMSTextMessage msg = session.createTextMessage(); > broadcaster.send(msg); In JMS a 'Queue' is for point-to-point communication. For broadcasting you want to use a 'Topic'; that way the consumers on the topic will each see every message sent. (If you use a queue on the other hand each message will be consumed by only on consumer).