Re: Sending a byte[] in a message

2007-10-04 Thread Zagato
Hey... lot of thanks.. i was using only the set*Attribute from Message, but with setObject and getObject from ActiveMQObjectMessage and a "public class Test implements Serializable" with a byte[] attribute works perfect thanks !! Alan Jairo Acosta Univalle - Cali - Colombia On 10/3/07, Rob Da

Re: Sending a byte[] in a message

2007-10-02 Thread Rob Davies
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/

Sending a byte[] in a message

2007-10-02 Thread Zagato
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 adv