Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
AMQ 7.2.0.GA
-
None
Description
If I send a message using the Artemis Core JMS library without setting JMSDeliveryTime, it will default to 0. If I send a message using Qpid JMS and then receive it using Artemis Core JMS, I again get a 0 from getJMSDeliveryTime.
Both is contrary to specification. JMS 2.0 specification states:
3.4.13. JMSDeliveryTime
When a message is sent, the JMS provider calculates its delivery time by adding the delivery delay value specified on the send method to the time the message was sent (for transacted sends, this is the time the client sends the message, not the time the transaction is committed). It is represented as a long value which is defined as the difference, measured in milliseconds, between the delivery time time and midnight, January 1, 1970 UTC.
On return from the send method, the message’s JMSDeliveryTime header field contains this value. When a message is received its JMSDeliveryTime header field contains this same value.
[...]
Qpid JMS implemented what I agree is correct behavior in https://issues.apache.org/jira/browse/QPIDJMS-289.