How do I delay delivery of a JMS message using HornetQ?
hornetq, java, jboss, jms
Solution
Use the HornetQ scheduled delivery property: "_HQ_SCHED_DELIVERY" (or the constant Message.HDR_SCHEDULED_DELIVERY_TIME).
Problem
Basically, I want the HornetQ equivalent of: ``` message.setLongProperty("JMS_JBOSS_SCHEDULED_DELIVERY", System.currentTimeMillis() + processingDelayInMS); ```