Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 12024 invoked from network); 4 May 2007 11:09:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 11:09:56 -0000 Received: (qmail 10196 invoked by uid 500); 4 May 2007 11:10:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10170 invoked by uid 500); 4 May 2007 11:10:02 -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 10159 invoked by uid 99); 4 May 2007 11:10:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 04:10:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 04:09:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7DC0471403B for ; Fri, 4 May 2007 04:09:34 -0700 (PDT) Message-ID: <11687184.1178276974488.JavaMail.jira@brutus> Date: Fri, 4 May 2007 04:09:34 -0700 (PDT) From: "James Alan Shepherd (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1243) Multiple WebClient instances MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Multiple WebClient instances ---------------------------- Key: AMQ-1243 URL: https://issues.apache.org/activemq/browse/AMQ-1243 Project: ActiveMQ Issue Type: Improvement Environment: Using activemq-web-demo as a test for changes in activemq-web while using the 'chat demo'. Patch created from eclipse on mactel Reporter: James Alan Shepherd Priority: Minor Attachments: patch-trunk-2007-05-04.txt Just learning about ActiveMQ and noticed, like many before I imagine, that the chat demo doesn't let you use it in different tabs/windows of a browser at once. Well, it runs, but you share the consumers in the WebClient stored in the HttpSession. So, why not have multiple WebClients in the Session, one for each 'rendering' of the window, meaning for each instance of amq(.js)? So you need a UID in HttpSession for each amq instance. You also need to set the amq._pollDelay to something sensible, as polling is done by GET and connections to the server are throttled by the browser. Hopefully the attached patch will seem resonable. Changes in _amq.js are set to test the new functionality; minimal changes to MessageListenerServlet; few changes to WebClient; added WebClientDirector to direct getting of correct WebClient instance and creating new ones. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.