Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 12448 invoked from network); 2 Mar 2009 10:22:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 10:22:23 -0000 Received: (qmail 71854 invoked by uid 500); 2 Mar 2009 10:22:23 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 71825 invoked by uid 500); 2 Mar 2009 10:22:23 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 71814 invoked by uid 99); 2 Mar 2009 10:22:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 02:22:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 10:22:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ADD20234C4A8 for ; Mon, 2 Mar 2009 02:21:59 -0800 (PST) Message-ID: <211600391.1235989319710.JavaMail.jira@brutus> Date: Mon, 2 Mar 2009 02:21:59 -0800 (PST) From: "Daniel Varela Santoalla (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1545) Chat sample not working properly with > 1 windows In-Reply-To: <27417609.1200019603678.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50137#action_50137 ] Daniel Varela Santoalla commented on AMQ-1545: ---------------------------------------------- Yes, this affects obviously not only the chat example but any instance where there is more than one window open within the same session. Even having a single window, message reception is altered by reloading that window, as I found out with some tests in Firefox 3 and Konqueror. Results were quite inconsistent, sometimes missing messages altogether, sometimes the latest window getting all of them, sometimes were alternating between windows. I'm including a patch that might solve this problem, hopefully keeping compatibility with any previous behaviour. It works by including a "windowId" in the "amq.url" parameter of the HTML page, like this: This parameter will be different for every window or "window reload", and then it is picked up (through getRequestInfo) by WebClient and MessageListenerServlet to map different windows to different listeners, allowing ALL of them to get the messages. After applying this patch the chat example allows chatting between multiple windows of the same session. Hope this helps. Daniel. > Chat sample not working properly with > 1 windows > ------------------------------------------------- > > Key: AMQ-1545 > URL: https://issues.apache.org/activemq/browse/AMQ-1545 > Project: ActiveMQ > Issue Type: Bug > Components: Samples > Affects Versions: 5.0.0 > Reporter: Glen Mazza > Priority: Minor > Fix For: 5.3.0 > > > Opening three browser windows of the Chat sample is resulting in it not working properly. Each message sent from one window gets picked up by only one of the three browser windows (in rotating fashion). It is possible to move to a publish-subscribe model for the javascript comprising this example so all windows get each message sent? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.