Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 7163 invoked from network); 11 Apr 2006 22:41:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2006 22:41:41 -0000 Received: (qmail 64534 invoked by uid 500); 11 Apr 2006 22:41:41 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 64506 invoked by uid 500); 11 Apr 2006 22:41:41 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 64497 invoked by uid 99); 11 Apr 2006 22:41:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 15:41:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chirino@gmail.com designates 64.233.162.204 as permitted sender) Received: from [64.233.162.204] (HELO zproxy.gmail.com) (64.233.162.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 15:41:40 -0700 Received: by zproxy.gmail.com with SMTP id 8so1098607nzo for ; Tue, 11 Apr 2006 15:41:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q+XSO0rimCdgwW6sd6tk3GqGkadz57KkAb1C6lAHrte0BWouDIRy+zHlYDZWFb1D4Q+GSD+H6bocJL7eBcrvAsHxZFT7bdAVlQnZHZMcVfnolEtB8VZjc67RQMGn9EVDAlR1g/GH9BRaiBwbdD+1wpGuLdJK3saMNdIv/ecXkTQ= Received: by 10.65.205.5 with SMTP id h5mr2790933qbq; Tue, 11 Apr 2006 15:41:11 -0700 (PDT) Received: by 10.65.234.8 with HTTP; Tue, 11 Apr 2006 15:41:11 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 18:41:11 -0400 From: "Hiram Chirino" Sender: chirino@gmail.com To: activemq-dev@geronimo.apache.org Subject: Re: STOMP bytes messages In-Reply-To: <8a6feb940604111434g437d385o3d9bc164a0690de4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8a6feb940604111434g437d385o3d9bc164a0690de4@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'd be happy to try to debug this with you. What should I build and run to get your test case going? On 4/11/06, Nathan Mittler wrote: > I'm trying to upgrade CMS to work property with bytes messages. I assume > that a bytes message in stomp is simply a message that has a > "content-length" header, defining the size of the body. My test is a > modification of the example in CMS, where I have a stomp publisher and st= omp > subscriber through the same connection. The publisher sends the message = and > the subscriber should receive it (a sleep is done after the publish to > facilitate the receipt of the message). This works fine for text message= s, > but not so much with the bytes message. I have logged the exact data tha= t > I'm writing to the socket below (non-printable characters are in brackets= to > show their decimal value). > > SEND[10]content-length:10[10]destination:/topic/mytopic[10][10][0][1][2][= 3][0][4][5][6][0][0][0] > > So the content-length is 10 and data it contains is: 0,1,2,3,0,4,5,6,0,0 = ... > the extra null at the end is required by stomp to denote the end of the > frame. So I send this out (without any indication of a problem) and it > seems that I get something in on the socket, but when I read, there is > nothing there - indicating a broken socket. If I switch the code back to > using text messages, everything is happy. > > Any ideas? > > Thanks, > Nate > > -- Regards, Hiram