Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 70789 invoked from network); 9 May 2007 08:59:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 08:59:55 -0000 Received: (qmail 85847 invoked by uid 500); 9 May 2007 09:00:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 85757 invoked by uid 500); 9 May 2007 09:00:01 -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 85747 invoked by uid 99); 9 May 2007 09:00:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 02:00: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; Wed, 09 May 2007 01:59:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 78D67714022 for ; Wed, 9 May 2007 01:59:34 -0700 (PDT) Message-ID: <22115440.1178701174491.JavaMail.jira@brutus> Date: Wed, 9 May 2007 01:59:34 -0700 (PDT) From: "James Alan Shepherd (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-1243) Multiple WebClient instances In-Reply-To: <11687184.1178276974488.JavaMail.jira@brutus> 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 [ https://issues.apache.org/activemq/browse/AMQ-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Alan Shepherd updated AMQ-1243: ------------------------------------- Attachment: patch-trunk-2007-05-09.txt Second Patch > 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, patch-trunk-2007-05-09.txt > > Original Estimate: 2 hours > Remaining Estimate: 2 hours > > 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.