activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: reading message size using queue browser
Date Thu, 21 Jun 2007 08:11:50 GMT
On 6/21/07, keneida <keneida@o2.pl> wrote:
>
>
> James.Strachan wrote:
> >
> > On 6/20/07, keneida <keneida@o2.pl> wrote:
> >>
> >> using queue browser i can see all the parameters of the messages. However
> >> doesnt matter what I send the "size" parameter is always 0.
> >
> > What "size" parameter?
> >
> > --
> > James
> > -------
> > http://macstrac.blogspot.com/
> >
> >
>
> Message: ActiveMQObjectMessage {commandId = 5, responseRequired = true,
> messageId = ID:sylwester-37042-1182332902493-1:2:1:1:1, originalDestination
> = null, originalTransactionId = null, producerId =
> ID:sylwester-37042-1182332902493-1:2:1:1, destination =
> queue://ReportsQueue, transactionId = null, expiration = 0, timestamp =
> 1182332903147, arrival = 0, correlationId = null, replyTo = null, persistent
> = true, type = null, priority = 4, groupID = null, groupSequence = 0,
> targetConsumerId = null, compressed = false, userID = null, content =
> org.apache.activemq.util.ByteSequence@124bbbf, marshalledProperties = null,
> dataStructure = null, redeliveryCounter = 0,
> size = 0,
> properties = null, readOnlyProperties = true, readOnlyBody = true, droppable
> = false}

Note that getSize() on a message is an internal detail used for flow
control; its not really intended for end users. Try looking at the
body of the message instead.

BTW what version are you using?


-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message