You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Marco.Crivellaro" <ma...@gmail.com> on 2013/07/29 10:27:15 UTC

how is JMSTimestamp set

Hi All,
I have a question regarding how JMSTimestamp property is set as this is not
clear in documentation.
If this being set by the client when pushing the message or is this being
set by the broker when it successfully receives the message?

If this is set by the client library is there a way to set an additional
header which sets the timestamp of the Broker? I'd need this in order to
compute the offset between the client and the broker timestamps.

Thank you,
Marco



--
View this message in context: http://activemq.2283324.n4.nabble.com/how-is-JMSTimestamp-set-tp4669820.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how is JMSTimestamp set

Posted by Christian Posta <ch...@gmail.com>.
JMSTimestamp is understood by the spec to be set by the client. The broker
would override this.
JMSTimestamp is what the broker uses for TTL expiration.


On Wed, Jul 31, 2013 at 12:11 AM, Marco.Crivellaro <ma...@gmail.com>wrote:

> Thanks.
> What would be the difference in setting JMSTimestamp using the timestamp
> plugin and using JMSActiveMQBrokerInTime?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/how-is-JMSTimestamp-set-tp4669820p4669904.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: how is JMSTimestamp set

Posted by "Marco.Crivellaro" <ma...@gmail.com>.
Thanks.
What would be the difference in setting JMSTimestamp using the timestamp
plugin and using JMSActiveMQBrokerInTime?



--
View this message in context: http://activemq.2283324.n4.nabble.com/how-is-JMSTimestamp-set-tp4669820p4669904.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how is JMSTimestamp set

Posted by Christian Posta <ch...@gmail.com>.
Yes.

And you can take a look at broker time stamping plugin (
http://activemq.apache.org/timestampplugin.html) if you want to rely on the
broker's time... though note, it's not fully JMS compliant when doing that.


On Mon, Jul 29, 2013 at 9:01 AM, Marco.Crivellaro <ma...@gmail.com>wrote:

> found out JMSTimestamp is being set by the client, the broker will set
> JMSActiveMQBrokerInTime
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/how-is-JMSTimestamp-set-tp4669820p4669827.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: how is JMSTimestamp set

Posted by "Marco.Crivellaro" <ma...@gmail.com>.
found out JMSTimestamp is being set by the client, the broker will set
JMSActiveMQBrokerInTime



--
View this message in context: http://activemq.2283324.n4.nabble.com/how-is-JMSTimestamp-set-tp4669820p4669827.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.