]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add persistent:true property to Stomp messages so ActiveMQ doesn't decide to discard...
authorBrion Vibber <brion@pobox.com>
Wed, 27 Jan 2010 17:24:59 +0000 (09:24 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 27 Jan 2010 17:24:59 +0000 (09:24 -0800)
lib/stompqueuemanager.php

index 89f3d74cce0e7fb6628552c6538a0a758760ac2d..19e8c49b5ce9c9e7a996ef3f8d948a9360b8f952 100644 (file)
@@ -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");