From: Brion Vibber Date: Wed, 27 Jan 2010 17:24:59 +0000 (-0800) Subject: Add persistent:true property to Stomp messages so ActiveMQ doesn't decide to discard... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c51539804a7f6f63b3f47fd838b9527262440e3d;p=quix0rs-gnu-social.git Add persistent:true property to Stomp messages so ActiveMQ doesn't decide to discard them even though persistence is enabled on the broker. :) (Thanks Aric!) --- diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php index 89f3d74cce..19e8c49b5c 100644 --- a/lib/stompqueuemanager.php +++ b/lib/stompqueuemanager.php @@ -178,7 +178,8 @@ class StompQueueManager extends QueueManager $result = $this->con->send($this->queueName($queue), $msg, // BODY of the message - array ('created' => common_sql_now())); + array ('created' => common_sql_now(), + 'persistent' => 'true')); if (!$result) { common_log(LOG_ERR, "Error sending $rep to $queue queue");