Re compression; if your producer has not set useCompression to true, then the
'compressed' message property will be set to false when viewed by your
consumer.  If I'm not mistaken, the default compression algorithm used is
the default “DEFLATE” (gzip) algorithm. More on this algorithm can be found
here, http://en.wikipedia.org/wiki/DEFLATE

Joe
Goto www.ttmsolutions.com for a free ActiveMQ user guide


tanshul22 wrote:
> 
> I have been trying to reduce the overhead an activemq message carries.
> 
> ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
> null, originalDestination = null, originalTransactionId = null, producerId
> = null, destination = null, transactionId = null, expiration = 0,
> timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
> correlationId = null, replyTo = null, persistent = false, type = null,
> priority = 0, groupID = null, groupSequence = 0, targetConsumerId = null,
> compressed = false, userID = null, content = null, marshalledProperties =
> null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
> null, readOnlyProperties = false, readOnlyBody = false, droppable = false,
> text = Hello World}
> 
> I wonder why does a message carry all these feilds due to which its size
> increases even more than 10 times.
> 
> Is there a way to get rid of these overheads.
> 
> Secondly, i am using jms.useCompression=true but still my messages show a
> compression = false.
> Does anybody know why?
> 
> Thanks,
> Anshul
> 

-- 
View this message in context: 
http://www.nabble.com/Reducing-the-size-of-messages-tp16757781s2354p16758966.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to