activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Sending a byte[] in a message
Date Wed, 03 Oct 2007 05:26:32 GMT
You can send any object in an ObjectMessage that implements the  
java.io.Serializable interface. This includes amongst other things,  
arrays. So passing a byte[] via an object message is absolutely fine.
  Passing it via a ByteMessage is quicker!


cheers,

Rob

http://rajdavies.blogspot.com/



On Oct 3, 2007, at 3:52 AM, Zagato wrote:

> Hello everybody, i'm newbie with ActiveMQ,.. i have a very long  
> String that
> i compress using BZIP2 with Java, this works perfect but i get a  
> byte[] as
> the result of the compression, then i need to send this byte[] in a
> ObjectMessage, is this posible ? can somebody give a few tips !!!
>
> Thanks in advance...
>
> Alan Jairo Acosta
> Cali - Colombia
>
> -- 
> Farewell.
> http://www.youtube.com/zagatogekko
> ruby << __EOF__
>   puts [ 111, 116, 97, 103, 97, 90 ].collect{|v| v.chr}.join.reverse
> __EOF__


Mime
View raw message