Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delay delivery of a JMS message using HornetQ?

Basically, I want the HornetQ equivalent of:

message.setLongProperty("JMS_JBOSS_SCHEDULED_DELIVERY", System.currentTimeMillis() + processingDelayInMS);
like image 484
Chris Williams Avatar asked Apr 27 '12 16:04

Chris Williams


1 Answers

Use the HornetQ scheduled delivery property: "_HQ_SCHED_DELIVERY" (or the constant Message.HDR_SCHEDULED_DELIVERY_TIME).

like image 131
Chris Williams Avatar answered Oct 20 '22 20:10

Chris Williams