Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 62600 invoked from network); 2 Nov 2009 09:54:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 09:54:47 -0000 Received: (qmail 13415 invoked by uid 500); 2 Nov 2009 09:54:47 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 13372 invoked by uid 500); 2 Nov 2009 09:54:46 -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 13362 invoked by uid 99); 2 Nov 2009 09:54:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 09:54:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.218.215 as permitted sender) Received: from [209.85.218.215] (HELO mail-bw0-f215.google.com) (209.85.218.215) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 09:54:36 +0000 Received: by bwz7 with SMTP id 7so6607261bwz.6 for ; Mon, 02 Nov 2009 01:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=Tzd7YSE8nnWJEJLSrhtEnw41/vjfteKmjZ7hn7C47rU=; b=TjMont7GlZiTIc/Ty1yLK1XNTjHLjf88Sy4jIU7DVcu+EkC9a1seE0UStdH8GpObht ZcVoMqOOBhiQDZtaKdcJCwHrler9lQjzxJmTIH4DwIVncIZAhrS+t1G/Q9wcH2zCWaFZ tWACVWkIiLTYxDE64Hozc2Bd7eO42A+FjpR4k= 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; b=Qp9dNB9WwrbaxLFk4YfUluqVc7y0Dlf4tt6Ecsk7w/5FRQgrGtsJxOKUdxLExpWb/9 c4rYlXj/Dvgnn3wk2CHSC0LZVOlxHobMk3wCCV3P08f5+lKEt/6jHrziN2L/QrzZzqjv qcP/Cxs0Q5CbKQzHrJ3o0kq1ZUo8Qm+XxCb8k= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.223.2.79 with SMTP id 15mr518634fai.106.1257155655035; Mon, 02 Nov 2009 01:54:15 -0800 (PST) In-Reply-To: <26146548.post@talk.nabble.com> References: <26146548.post@talk.nabble.com> Date: Mon, 2 Nov 2009 10:54:15 +0100 X-Google-Sender-Auth: 606bb751ba7e58f0 Message-ID: <36e91d9d0911020154w65bf74e6j387f827501c1863f@mail.gmail.com> Subject: Re: php stomp issues From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001517447c103eece90477605cbd X-Virus-Checked: Checked by ClamAV on apache.org --001517447c103eece90477605cbd Content-Type: text/plain; charset=ISO-8859-1 Hi, I made some fixes to the binary messages handling in php stomp client. You can take 1.1-SNAPSHOT here http://stomp.fusesource.org/snapshot/php/1.1-SNAPSHOT/stomp-php-1.1-20091102.tar.gz also take a look at an example on how to handle binary messages here http://fusesource.com/forge/gitweb?p=stomp.git;a=blob;f=php/src/examples/binary.php;h=d0908a7106741abb73b362e2c1e283c21ca58743;hb=HEAD Please let me know if it works for you now. 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 Sat, Oct 31, 2009 at 11:34 PM, massive.boisson wrote: > > Hi, > > I have been able to setup php producing and java consuming messages. > These are only text messages at the moment. > > Is there a way to send byte messages? > > I tried reading file from system and passing it along as body, with: > $header = array("content-length"=>1); > > But I had problems: > 1) I had to change Message/Bytes.php to extend StompMessage (and not > Stomp_Message). > > 2) I get > ERROR message:content-length bytes were read and there was no trailing null > byte > > org.apache.activemq.transport.stomp.ProtocolException: content-length bytes > were read and there was no trailing null byte > at > > org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:149) > > Is this supported? Are there any examples of this, or has anyone been able > to get it to work? > Or can I use something else? > > Thanks > > --MB > -- > View this message in context: > http://old.nabble.com/php-stomp-issues-tp26146548p26146548.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001517447c103eece90477605cbd--