activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: TextMessage vs ByteMessage
Date Fri, 18 Apr 2008 06:32:07 GMT

On 17 Apr 2008, at 22:08, Rukus520 wrote:

>
> Hi,
>
> Let's say I'm sending data in the form of xml. The data being sent  
> is big
> but certainly not large enough to warrant the use of BlobMessages.
>
> Which of the following approaches would be better for performance,  
> and why:
> - Send the xml as TextMessages.
> - Convert the xml to bytes, and then send the bytes as ByteMessages.
>
> Perhaps my underlying question is, "Does ActiveMQ's implementation of
> TextMessages optimize the transmission of TextMessages by  
> compressing the
> content somehow?"
>
>
> Thanks in advance! Thank you Rob for the quick reply last time too!
> -- 
> View this message in context: http://www.nabble.com/TextMessage-vs-ByteMessage-tp16755490s2354p16755490.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


I'd use TextMessage - ActiveMQ converts the text into a binary format  
to transfer on-the-wire anyway
If you'd like compression to be used - you need to enable the  
useCompression property on your ActiveMQConnectionFactory


cheers,

Rob

http://open.iona.com/ -Enterprise Open Integration
http://rajdavies.blogspot.com/




Mime
View raw message