Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 98862 invoked from network); 15 Dec 2010 14:46:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Dec 2010 14:46:35 -0000 Received: (qmail 74618 invoked by uid 500); 15 Dec 2010 14:46:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 74487 invoked by uid 500); 15 Dec 2010 14:46:34 -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 74474 invoked by uid 99); 15 Dec 2010 14:46:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 14:46:34 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.251.173.164] (HELO filter3.e-filtering.net) (64.251.173.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 14:46:29 +0000 X-ASG-Debug-ID: 1292424363-1bdb019d0000-Ri9J0o X-Barracuda-URL: http://64.251.173.164:8000/cgi-bin/mark.cgi Received: from rutabaga.dean (98.159.189.31.dsl.venturecomm.net [98.159.189.31]) by filter3.e-filtering.net (Spam Firewall) with ESMTP id 1767A45B1CF2 for ; Wed, 15 Dec 2010 07:46:03 -0700 (MST) Received: from rutabaga.dean (98.159.189.31.dsl.venturecomm.net [98.159.189.31]) by filter3.e-filtering.net with ESMTP id XLqaUZtetGINbhIC for ; Wed, 15 Dec 2010 07:46:03 -0700 (MST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) X-ASG-Orig-Subj: Re: ajax handling fast messages Subject: Re: ajax handling fast messages From: Alex Dean In-Reply-To: Date: Wed, 15 Dec 2010 08:46:03 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <77D15CDA-C1D5-4437-B247-F51E0D6F637E@crackpot.org> <61BDC4F3-9EA1-4B2C-AC42-87DA4510C195@crackpot.org> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1081) X-Barracuda-Connect: 98.159.189.31.dsl.venturecomm.net[98.159.189.31] X-Barracuda-Start-Time: 1292424364 X-Barracuda-Virus-Scanned: by E-Filtering Spam Firewall at e-filtering.net X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=5.0 KILL_LEVEL=6.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.49507 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On Dec 15, 2010, at 3:02 AM, Dejan Bosanac wrote: > Hi Jeff, Alex, >=20 > having some kind of test that reproduces the issue would be great. > It'd be good to add something to the tests Alex already contributed >=20 > = https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src= /main/webapp/test/amq_test.html?r=3DHEAD >=20 These tests will be junit, since they're testing MessageListenerServlet. = The trouble I've had in the past, and continue to have, is that I = haven't been able to get the session cookie returned during my tests. Here's a test I've worked on : http://pastie.org/1177995 Here's the output : http://pastie.org/1178030 This code shows 2 separate ways I've tried accessing the response = headers. 1. Implementing ContentExchange.onResponseHeader. My callback is never = called, though my other onRequestComplete and onResponseComplete = callbacks are. 2. Trying to use ContentExchange.getResponseFields(). The returned = object is null. I watched port 8080 in wireshark while my test was running, and I did = see that the 'Set-Cookie' header was returned by the server.=20 http://skitch.com/alexdean/d2g2b/capturing-from-lo0-wireshark I am able to send a POST to the servlet, and I do receive a response, = but without the cookie I can't associate my later requests with the = subscriptions I've created in the initial POST. If anyone can see what I'm doing wrong, I'd really appreciate some tips = or even a nudge in the right direction. If I could get this working, I = could write a test pretty easily to reproduce the issue we're currently = seeing, and then verify the issue has been fixed. I could also write = tests for the previous patches I've submitted for = MessageListenerServlet. thanks, alex=