summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-27 09:24:59 -0800
committerBrion Vibber <brion@pobox.com>2010-01-27 09:24:59 -0800
commitc51539804a7f6f63b3f47fd838b9527262440e3d (patch)
tree9a29c719c3d8b5b793eff7729ed3db12eadeba02 /lib
parent7aeb03f7277de247a642b613775383480bccc63f (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.php3
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");