activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: Artemis - Cannot get scheduled messages to work with AMQP and Topic
Date Wed, 18 Oct 2017 15:13:29 GMT
On 10/18/2017 11:09 AM, Matthias Hanisch wrote:
> This seems to be a qpid problem. I debugged through the code and my
> delivery time above gets overwritten.
> Currently you can only set it using
>              producer.setDeliveryDelay(60000);
> And then scheduled messages work. So sorry for the noise.

Not a Qpid problem at all, the JMS API clearly states that's how this works:

void setJMSDeliveryTime(long deliveryTime)

Sets the message's delivery time value.

This method is for use by JMS providers only to set this field when a 
message is sent. This message cannot be used by clients to configure the 
delivery time of the message. This method is public to allow a JMS 
provider to set this field when sending a message whose implementation 
is not its own.

> 2017-10-18 15:49 GMT+02:00 Matthias Hanisch <>:
>> Hi,
>> I would like to send a message deferred on a topic (multicast address),
>> but my problems is that the listener immediately receives the message.
>> The producer is build based on qpid-jms-client 0.25. I have tried to set
>> JMSDeliveryTime and/or _AMQ_SCHED_DELIVERY messsage property in the
>> following way
>>              long deliveryTime = System.currentTimeMillis() + 60000;
>>              message.setJMSDeliveryTime(deliveryTime);
>>              message.setLongProperty("_AMQ_SCHED_DELIVERY", deliveryTime);
>> Is there anything else I am missing, some setup or extra properties? Or is
>> this supported at all?
>> Or is it a problem using multi-cast?
>> I am using artemis 2.4.0-SNAPSHOT from last week.
>> Many thanks in advance,
>> Matthias

Tim Bish
twitter: @tabish121

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