diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-27 09:24:59 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-27 09:24:59 -0800 |
commit | c51539804a7f6f63b3f47fd838b9527262440e3d (patch) | |
tree | 9a29c719c3d8b5b793eff7729ed3db12eadeba02 /lib | |
parent | 7aeb03f7277de247a642b613775383480bccc63f (diff) |
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!)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stompqueuemanager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php index 89f3d74cc..19e8c49b5 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"); |