Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80768 invoked from network); 16 Jul 2010 18:37:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jul 2010 18:37:18 -0000 Received: (qmail 22428 invoked by uid 500); 16 Jul 2010 18:37:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22375 invoked by uid 500); 16 Jul 2010 18:37:17 -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 22365 invoked by uid 99); 16 Jul 2010 18:37:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 18:37:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.38.34] (HELO web50106.mail.re2.yahoo.com) (206.190.38.34) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Jul 2010 18:37:08 +0000 Received: (qmail 9218 invoked by uid 60001); 16 Jul 2010 18:35:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1279305347; bh=hvrGH86e66EyBPMlEgPykKQ1Uf8Y60XCCAFjlI0HxfU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=WxM9RQ391LenwKZgP4ETeC0/VUO/8jaPAjGm+qp7HoEsHuohOFoF0AtmedfEH1o4BO8tGl7x1scYtO+pZXZ5RZY7jEs/nE4ue+Vj8MLX+R6TsB6LpCDe+aBx4LWwTJeDwxVvhVz4gK95XqBkRsl9DK/b/bndNLp1Syz+5t9Vfr8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=u1Y7X1SYQdIZEhg2RR9Q+0lEx3Z+7KZZg2X6u4I+QNZNyMfo+A7sV49bGwqvxVP02ka92mggimOrXyxiJTpMLr0jFCsuXSjMrSE1rrx/Zz+2Fd1HM3dsxrDlMj4qvSHkAafogy/hWMnP6Nv9dLmIsS36JtmZ1gXzI8xeGjbIQgg=; Message-ID: <311274.6630.qm@web50106.mail.re2.yahoo.com> X-YMail-OSG: RZsbNsIVM1nqZJsG1.WFJsGiBToIO_.VJ71VQYRF.Rov2Gb vnrBlXzW64gQMpgUnp5pDnFn7BCplau8JS9IXVxRroe4an1yGezWG3xx9bMo N3HhNwPKlpWuvdwjTAbggGCjtepkfgRhUTZEGDdUfqMgem9Ew1JeSOe9ka9c IgywEDiN3mxGlYJglWRoky9KeCoo9WDYz855D9smYyDD8dQ90._wkgtb_Uel k7679YgdT1_vI.2oyaiTuUmkR8uSDjgkWEZ8qg2LOqdzApMVFoFG6ThhtAxg edrL0Qs6nDUuumKYAoLc2yZc4OKzSDGiGN2FlMJ_AgjsmCjz2rX0pN2zKXcR 36SYjDA966jTo5R75mRUV8_6COw-- Received: from [69.47.188.60] by web50106.mail.re2.yahoo.com via HTTP; Fri, 16 Jul 2010 11:35:47 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.104.276605 References: Date: Fri, 16 Jul 2010 11:35:47 -0700 (PDT) From: qin ding Subject: Re: Please Help To: users@activemq.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org thanks, Clark. ----- Original Message ---- From: "clark.obrien@ttmsolutions.com" To: users@activemq.apache.org Sent: Fri, July 16, 2010 11:56:28 AM Subject: Re: Please Help QD, I would go with one topic per table . Using selectors is possible but will degrade performance and will also limit your options for achieving horizontal scalability down the road. -clark -----Original Message----- From: qin ding [mailto:qinding1@yahoo.com] Sent: Friday, July 16, 2010 09:07 AM To: users@activemq.apache.org Subject: Please Help Hi, I am using activemq to implement my game. I have n number of game tables and n number of players at each table. Right now, a queue is setup to send all requests from all users of all tables. A request handler listens to the queue, after the request arrives, it processes the request and then sends a response to a topic. All players are subscribed to the topic. Therefore they all receive the same response.This is not exactly what I want. I want all players at one table receives the message. Say, player1 and player2 sit at the table1. When a player1 send a request, and both player1 and player2 get the response; but no other players at other tables should get the response.First I thiink the selector is good for this usecase. tableName = '[table name value]' but since the table name is runtime property, I don't know how it can be implemented.Then I think use the message group. However, I don't see the expected result after I add replyMessage.setStringProperty("JMSXGroupID", tableName);.Then I think I should create one topic for one table and make players at the table subscribe the toptic. In this case, lots of topics will be created depending on the tables are created at runtime. And I need to find way to clean the topics when tables are no longer used.What should I correctly implement the use case? In brief, all players sit at one table should be communicated or share messages among themselves. Players from different tables do not.Thank you very much for any advise.QD