At least some of the below is only applicable to Qpid Broker-J and the
Qpid AMQP 0-x JMS client. For the AMQP 1.0 JMS client the poster is
using, the setDeliveryDelay method I referenced should be used in
order configure the delivery delay (which is used internally to
establish a delivery time at send)

Robbie

On Tue, 21 May 2019 at 18:33, jasmine <[email protected]> wrote:
>
> I'm not sure if I got your question clearly. If you want the messages to be
> got at specified time. You should use delay send.
> 1. You need setup the queue to be holdOnPublishEnabled. Either add it to
> attributes on create or set it up in UI. And as I remember, this field can
> only be setup in creating time, you can't update it later.
> 2. For the messages need to be delayed, set to;
> message.setLongProperty("x-qpid-not-valid-before", timeInMilliseconds);
> It need to be long property.
>
> The messages setup correctly will be in queue. You can view them in UI. But
> it won't be pick by consumer until the setup time. By the way, if you setup
> the time to be 12:00, the message will be pick up at or after 12:00. Not
> exactly 12:00.
>
> Hope this helps.
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to