Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 3437 invoked from network); 13 Oct 2010 11:56:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 11:56:11 -0000 Received: (qmail 28486 invoked by uid 500); 13 Oct 2010 11:56:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 28363 invoked by uid 500); 13 Oct 2010 11:56:08 -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 28355 invoked by uid 99); 13 Oct 2010 11:56:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 11:56:07 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 11:56:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9DBthYZ013471 for ; Wed, 13 Oct 2010 11:55:43 GMT Message-ID: <23686482.55911286970943694.JavaMail.jira@thor> Date: Wed, 13 Oct 2010 07:55:43 -0400 (EDT) From: "Dejan Bosanac (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2948) Support ajax clients in multiple windows/tabs in a single browser In-Reply-To: <25397858.36051285694620513.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dejan Bosanac resolved AMQ-2948. -------------------------------- Resolution: Fixed Fix Version/s: 5.5.0 Assignee: Dejan Bosanac Committed with svn revision 1022071. Thanks a lot for a great work. I think there's two things left to be done to complete Ajax improvements: * Documentation on Ajax is way out of date, so we should update it with these new features - http://activemq.apache.org/ajax.html * We should automate JS tests and include them in our unit testing suite with something like WebDriver (http://code.google.com/p/selenium/wiki/GettingStarted) > Support ajax clients in multiple windows/tabs in a single browser > ----------------------------------------------------------------- > > Key: AMQ-2948 > URL: https://issues.apache.org/activemq/browse/AMQ-2948 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.4.1 > Environment: OSX 10.6 > Centos 5.4 > Reporter: Alex Dean > Assignee: Dejan Bosanac > Fix For: 5.5.0 > > Attachments: support-multiple-ajax-clients-per-session.patch > > > In current ajax code, there is a 1-1 relationship between ajax client and session. Since multiple windows in the same browser share the same session, it's impossible for the ajax code to update both windows. Either 1 or the other will receive messages, but not both. > The attached patch allows an optional 'clientId' string to be passed to the JavaScript amq.init() function, similar to that supported by the REST servlet. This clientId string is sent to the server with every ajax request. In MessageListenerServlet, a new consumer is created for every new sessionid+clientId, allowing multiple windows in the same browser to send & receive messages independently. > For some (currently) unknown reason, IE7 cannot send messages from multiple windows. 2 IE7 windows can receive messages independently with no errors, but once either IE7 window sends a message, both windows cease receiving data. This behavior is not seen in FF (OSX or WinXP) or Safari (OSX). All those browsers are able to send & receive simultaneously in multiple windows with no errors. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.