You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by keneida <ke...@o2.pl> on 2007/06/20 12:40:22 UTC

reading message size using queue browser

using queue browser i can see all the parameters of the messages. However
doesnt matter what I send the "size" parameter is always 0.

-- 
View this message in context: http://www.nabble.com/reading-message-size-using-queue-browser-tf3951562s2354.html#a11210820
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading message size using queue browser

Posted by keneida <ke...@o2.pl>.


James.Strachan wrote:
> 
> On 6/21/07, keneida <ke...@o2.pl> wrote:
>>
>>
>> James.Strachan wrote:
>> >
>> > On 6/20/07, keneida <ke...@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/
> 
> 
It is 4.1.1, unfortunately I did not get permission to use 4.2 in the
production environment
-- 
View this message in context: http://www.nabble.com/reading-message-size-using-queue-browser-tf3951562s2354.html#a11230133
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading message size using queue browser

Posted by James Strachan <ja...@gmail.com>.
On 6/21/07, keneida <ke...@o2.pl> wrote:
>
>
> James.Strachan wrote:
> >
> > On 6/20/07, keneida <ke...@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/

Re: reading message size using queue browser

Posted by keneida <ke...@o2.pl>.

James.Strachan wrote:
> 
> On 6/20/07, keneida <ke...@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}

-- 
View this message in context: http://www.nabble.com/reading-message-size-using-queue-browser-tf3951562s2354.html#a11227952
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading message size using queue browser

Posted by James Strachan <ja...@gmail.com>.
On 6/20/07, keneida <ke...@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/