activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marta_rn <mrodrig...@agnitio.es>
Subject Re: TextMessage vs ByteMessage
Date Thu, 12 Jun 2008 09:34:11 GMT

Hello all, 

I would like to know which is the maximum length of a TextMessage. Is there
a limit?

Thanks in advance, 

Marta


rajdavies wrote:
> 
> 
> 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/
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/TextMessage-vs-ByteMessage-vs-StreamMessage-tp16755490p17796035.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message