Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 58419 invoked from network); 5 Jun 2006 08:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 08:20:28 -0000 Received: (qmail 74351 invoked by uid 500); 5 Jun 2006 08:20:28 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 74225 invoked by uid 500); 5 Jun 2006 08:20:27 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 74216 invoked by uid 99); 5 Jun 2006 08:20:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 01:20:27 -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 james.strachan@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 01:20:25 -0700 Received: by ug-out-1314.google.com with SMTP id m3so1322722uge for ; Mon, 05 Jun 2006 01:20:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rSjXp1HYTormsQQtREKzUhjwa+Da6R0k1ZWZWDev8ivVg4kCgHDopbNZc4rkgQtyceI3bDQH5SLQJPyEPHl/8Wlo1ifTuVlOGzAPYfkSvACxw+L97tHTsZcXKPzsIZIy1Hwc2pjs5vC5twhekBILKLFPVe1cLzsyiEkhZt0oCSE= Received: by 10.67.96.14 with SMTP id y14mr3132611ugl; Mon, 05 Jun 2006 01:20:04 -0700 (PDT) Received: by 10.66.255.17 with HTTP; Mon, 5 Jun 2006 01:20:04 -0700 (PDT) Message-ID: Date: Mon, 5 Jun 2006 09:20:04 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Stomp and TextMessage In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7743F17344E95A4CA78A3E53A7AF496B5C2EA8@corpatsmail1.corp.sensis.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N +1 On 6/5/06, Hiram Chirino wrote: > That sounds good to me. +1 > > On 6/2/06, Mittler, Nathan wrote: > > So, here's my impression of what we need to do (feel free to make > > mods)... > > > > 1) The stomp transport should always add the content-length header to > > out-going messages, regardless of content-type or whether or not a > > content-length was provided on the incoming message. > > 2) The stomp transport should handle in-coming messages with a > > content-type header, and should pass that through. > > 3) If a message comes in without a content-length or a content-type, it > > should just be assumed a TextMessage. This way we can use the > > terminating null character as the delimiter. > > > > If we're in agreement as to what needs to be done, I'll capture this in > > a JIRA issue. > > > > Regards, > > Nate > > > > -----Original Message----- > > From: James Strachan [mailto:james.strachan@gmail.com] > > Sent: Thursday, June 01, 2006 7:32 AM > > To: activemq-users@geronimo.apache.org > > Subject: Re: Stomp and TextMessage > > > > Agreed - FWIW we should probably add the content-type handling to > > Stomp support so folks could explicitly specify its MIME type etc > > > > On 5/31/06, Nathan Mittler wrote: > > > Hi, > > > I think if you leave off the content-length header, it will be > > interpreted > > > as a text message. > > > > > > Regards, > > > Nate > > > > > > On 5/31/06, wilkesj wrote: > > > > > > > > > > > > I'm try to send a TextMessage from a ruby producer to Java consumer. > > The > > > > message is being seen as a BytesMessage on the Java side. I've > > tried > > > > setting the type header to TextMessage, javax.jms.TextMessage and > > > > org.apache.activemq.commands.ActiveMQTextMessage. How do force it > > to be a > > > > TextMessage? > > > > > > > > Thanks, > > > > Wilkes > > > > -- > > > > View this message in context: > > > > http://www.nabble.com/Stomp+and+TextMessage-t1712841.html#a4650956 > > > > Sent from the ActiveMQ - User forum at Nabble.com. > > > > > > > > > > > > > > > > > > > > -- > > > > James > > ------- > > http://radio.weblogs.com/0112098/ > > > > > -- > Regards, > Hiram > -- James ------- http://radio.weblogs.com/0112098/