activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Hanisch <matthias.hani...@camline.com>
Subject Re: Artemis - Cannot get scheduled messages to work with AMQP and Topic
Date Wed, 18 Oct 2017 15:09:21 GMT
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.

2017-10-18 15:49 GMT+02:00 Matthias Hanisch <matthias.hanisch@camline.com>:

> 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
>

-- 
camLine GmbH
85238 Petershausen, Industriering 4a, Deutschland
Amtsgericht München HRB 88821
Geschäftsführer: Heinz Linsmaier (CEO), Bernhard Jofer, Georg Ruetz
<http://www.camline.com/en/camline/events.html>
<http://www.camline.com/en/camline/events.html> 
<http://www.camline.com/en/camline/events.html>

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