0 Replies Latest reply on Mar 20, 2015 10:33 AM by gabboflabbo

    Change Scheduled Delivery Date of a JMS Message

    gabboflabbo

      Is it possible change the scheduled delivery time of a message that is currently on a queue?

       

      For example (in wildfly cli),  if I have one message scheduled for 3 hours from now

      /subsystem=messaging/hornetq-server=default/runtime-queue=jms.queue.myqueue/:list-scheduled-messages
      {
          "outcome" => "success",
          "result" => [{
              "expiration" => 0,
              "_HQ_SCHED_DELIVERY" => 1426960713673L,
              "type" => 3,
              "durable" => true,
              "timestamp" => 1426860713673L,
              "userID" => "ID:0f544c43-cf0b-11e4-b34a-fddb3e6b1a8c",
              "JMSXDeliveryCount" => 0,
              "messageID" => 122408741823L,
              "address" => "jms.queue.myqueue",
              "priority" => 4,
              "__HQ_CID" => "0f542530-cf0b-11e4-b34a-fddb3e6b1a8c",
          }]
      }
      

      Is there any way for me to change the sched delivery to now?

       

      I can move-messages to another queue, but it keeps the sched delivery