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.

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]

Reply via email to