activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Is property JMSActiveMQBrokerInTime really correct in Activemq trunk from svn checkout
Date Wed, 18 Nov 2009 09:49:57 GMT
jmsTimeStamp is set on the client, by the client connection that does a
send.
JMSActiveMQBrokerInTime is set by the broker when it receives the message
and JMSActiveMQBrokerOutTime is set by the broker when it dispatched (or
just before) a message.

So if you appear to have not delivered messages, it looks like they have
been delivered but not acked, as the broker has dispatched them to a
consumer up to its prefetch limit.

2009/11/17 praveen.sharma <praveen.sharma@ll.mit.edu>

>
> Couple of questions:
>
> For jmsMessage
> (1) What is the relation between jmsTimeStamp, and properties:
> JMSActiveMQBrokerInTime, and JMSActiveMQBrokerOutTime?
>
> (2) Which one  is more accurate jmsTimeStamp, and properties:
> JMSActiveMQBrokerInTime?  Reason for asking this question is that I have
> messages in the queue (seen from jconsole) that are not delivered, and yet
> JMSActiveMQBrokerInTime = JMSActiveMQBrokerOutTime.  However, jmsTimeStamp
> gives a different value.
>
> I extracted these values as
>  JmsMessage msg = (JmsMessage) exch.getIn();
> msg.getJmsMessage().getJMSTimestamp()
>  msg.getJmsMessage().getLongProperty("JMSActiveMQBrokerInTime");
> msg.getJmsMessage().getLongProperty("JMSActiveMQBrokerOutTime");
>
>
> Sample output:
> jmsExpiration: 1258474190831 jmsTimeStamp: 1258474189831 jmsPriority: 7
> jmsDeliveryMode: 2 jmsMsgID: ID:padua-44786-1258474186761-0:26:1:1:1
> defaultPriority: 4 defaultTTL: 0 defaultDeliveryMode: 2...........100000
> Latency0.020777777777777777 Jitter 0.010979222222222224 BrokerInTime
> 1258474189832 BrokerOutTime 1258474189832 jmsBrokerQueueLatency 0
> ...........100000
>  jmsExpiration: 1258474190942 jmsTimeStamp: 1258474189942 jmsPriority: 7
> jmsDeliveryMode: 2 jmsMsgID: ID:padua-44786-1258474186761-0:27:1:1:1
> defaultPriority: 4 defaultTTL: 0 defaultDeliveryMode: 2...........100000
> Latency0.020392857142857143 Jitter 0.009979607142857142 BrokerInTime
> 1258474189943 BrokerOutTime 1258474189943 jmsBrokerQueueLatency 0
>
> --
> View this message in context:
> http://old.nabble.com/Is-property-JMSActiveMQBrokerInTime-really-correct-in-Activemq-trunk-from-svn-checkout-tp26392757p26392757.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message