Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 21446 invoked from network); 28 Jan 2011 13:59:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 13:59:15 -0000 Received: (qmail 52010 invoked by uid 500); 28 Jan 2011 13:59:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 51658 invoked by uid 500); 28 Jan 2011 13:59:12 -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 51650 invoked by uid 99); 28 Jan 2011 13:59:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 13:59:11 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.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; Fri, 28 Jan 2011 13:59:04 +0000 X-ASG-Debug-ID: 1296223122-6b3b00c00000-Ri9J0o X-Barracuda-URL: http://64.251.173.164:8000/cgi-bin/mark.cgi Received: from rutabaga.dean (98.159.190.83.dsl.venturecomm.net [98.159.190.83]) by filter3.e-filtering.net (Spam Firewall) with ESMTP id 314A0475C188 for ; Fri, 28 Jan 2011 06:58:42 -0700 (MST) Received: from rutabaga.dean (98.159.190.83.dsl.venturecomm.net [98.159.190.83]) by filter3.e-filtering.net with ESMTP id PVJGMFqCn3bGwBjP for ; Fri, 28 Jan 2011 06:58:42 -0700 (MST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) X-ASG-Orig-Subj: Re: ActiveMQ "message" defined?? from the docs/web links Subject: Re: ActiveMQ "message" defined?? from the docs/web links From: Alex Dean In-Reply-To: <1296145519803-3242535.post@n4.nabble.com> Date: Fri, 28 Jan 2011 07:58:37 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <8BE03560-B130-4C1C-9FEA-39385F7DC774@crackpot.org> References: <1296145519803-3242535.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1081) X-Barracuda-Connect: 98.159.190.83.dsl.venturecomm.net[98.159.190.83] X-Barracuda-Start-Time: 1296223123 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.53689 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On Jan 27, 2011, at 10:25 AM, habumaster wrote: >=20 > "3. A HTTP response is returned to the client containing all = available > messages encapsulated as text/xml" >=20 > How does AMQ decide that messages are separate in a stream received? Which part of ActiveMQ are you referring to? The broker will get = separate messages from publishers, and as far as I know it won't ever = split one message into several. AjaxServlet sends messages to the = browser in some XML packaging, which is used by amq.js to decide which = callback function to pass each message to. message on = queue A message on = queue B This is how the messages look in transit between AjaxServlet and amq.js. = amq.js will call handlerA() for the first message, and handlerB() for = the second message. >=20 > Does it key off line breaks "\n" or what=20 >=20 > A single Message is getting split into multiple messages, so I get = multiple > ones returned. That sounds like a bug. Can you reproduce it reliably? What does the = original message look like, how do you send it to the broker = (stomp,ajax,other?), and what does the browser see when the messages are = received? alex