----- Original Message -----
> On 04/08/2011 12:30 AM, Paul Colby wrote:
> > Hi,
> >
> > Is it possible to get a message's timestamp via the Qpid Messaging
> > API?
> 
> Not yet, I'm afraid. The broker doesn't set the timestamp either at
> present. If you want to create a JIRA I could have a look at
> addressing
> that at some point.

The concern here is this: which timestamp do you use? Originator? Broker?

Do you assume that all clocks are in synch?  

What's the purpose? Is it for testing latencies? Or is this a business use case?

If it's for business it might be useful putting this in the broker - at least 
all arriving messages would have a consistent clock for the timestamp.

For latency testing you need to put this in the publisher and also clock the 
return (receiving the message) in the same client - i.e. the publisher so that 
you know the latency numbers are using a consistent clock.  If you're not too 
strict on the values being out of synch you might do this differently but it's 
my experience that you should use the same clock for consistent numbers. Clocks 
can get out of synch and can be inaccurate despite all efforts to synch them.

William

> 
> > ie, using the qpid::messaging::Connection and
> > qpid::messaging::Receiver
> > classes, I have retrieved a qpid::messaging::Message... now, can I
> > get a
> > timestamp associated with that Message object? Specifically, I'd
> > like to
> > know the time at which the message was received by the broker.
> >
> > I see that there is some kind of timestamp included in the AMQP
> > frames,
> > but can't see if that's exposed in any way accessible to the
> > Messaging API.
> >
> > Naturally I could add my own custom timestamp property to every
> > message
> > I send, and will do so if that's the only option, but it would be
> > nice
> > to be able to access the broker's built-in timestamp (assuming there
> > is
> > one).
> >
> > Thanks :)
> >
> > Paul Colby.
> > C++ Developer
> > www.MessageMedia.com.au
> >
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:[email protected]

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to