From users-return-25284-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Sep 13 08:26:35 2010 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80617 invoked from network); 13 Sep 2010 08:26:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 08:26:35 -0000 Received: (qmail 99212 invoked by uid 500); 13 Sep 2010 08:26:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 98900 invoked by uid 500); 13 Sep 2010 08:26:32 -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 98892 invoked by uid 99); 13 Sep 2010 08:26:31 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 08:26:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=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: domain of chubrilo@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 08:26:10 +0000 Received: by bwz16 with SMTP id 16so7766316bwz.2 for ; Mon, 13 Sep 2010 01:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=UgNHKRq6DqrQA6t0C8Svhsm4W0fMfFYO4C4jHVZlBTY=; b=XNLAekVwcG91H/yPbH5z3VZbK1SsptYFY4uX7vta4USHq4qZVXc2wDcugkV1EKJSFd Dt90c4008zyVaOButdE1EtBwt5lqeuP2Ic82lYT10zhNdjZYv7geklOyphnn3fZlleVS 1zpIfmhakY6KjTmyPJMYRSoc6tA+wNEJRmXt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=fvSbAuAdKZiWLSERa3grx4GSWvC4l3FtbjClJA4+thulml/PKPxtrFRkjwVT1StVM9 6JqtkigLK+hMkGyd8nnLXgAOeG//S9O7hwwIcB4d/qaJLp8qz7WB/EH1Sjk22Kln72R0 W/jVq04mDWcDdDpJqcl00t02cgAiS7qrOywic= MIME-Version: 1.0 Received: by 10.204.180.75 with SMTP id bt11mr2928822bkb.115.1284366350165; Mon, 13 Sep 2010 01:25:50 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.204.120.198 with HTTP; Mon, 13 Sep 2010 01:25:50 -0700 (PDT) In-Reply-To: <15163C87-6385-45D1-BCCC-5B172D5A377E@crackpot.org> References: <15163C87-6385-45D1-BCCC-5B172D5A377E@crackpot.org> Date: Mon, 13 Sep 2010 10:25:50 +0200 X-Google-Sender-Auth: 2PePSsGjOWIsO239bAMgs0rrG4M Message-ID: Subject: Re: multiple ajax clients in the same browser? From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Alex, unfortunately this is not supported at the moment as listeners are tied to the session. The right approach would be to use some clientId defined in your application, like we have for REST and pass it to the servlet. If you're interested in taking a stab at implementing this, I can point you to the code that should be improved. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Sep 10, 2010 at 6:46 PM, Alex Dean wrote: > I have been testing a web page displaying activemq data via the AJAX > interface with AMQ 5.4. =A0It works great when I have a single window ope= n. > =A0If I open the same page in a new browser window or tab, the new window= /tab > updates correctly but the previously-open one stops updating. > > Firebug/Firefox in the previously-opened window starts reporting errors l= ike > "No handler found to match message with id =3D display43066495". > =A0'display43066495' is the id used by the newly-opened window. =A0I had = tried > ensuring that both windows opened with unique ids, but this hasn't solved > the problem. > > I imagine this is due to the fact that both windows share the same sessio= n > id on the broker. =A0Is there a way to work around this problem, so I can= have > multiple windows open to the same amq/ajax-connected page? > > thanks, > alex >