summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/QueueRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/QueueRegistry.cpp')
-rw-r--r--cpp/src/qpid/broker/QueueRegistry.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/QueueRegistry.cpp b/cpp/src/qpid/broker/QueueRegistry.cpp
index 31eab33fe2..bc7f00c7ef 100644
--- a/cpp/src/qpid/broker/QueueRegistry.cpp
+++ b/cpp/src/qpid/broker/QueueRegistry.cpp
@@ -47,7 +47,8 @@ QueueRegistry::declare(const string& declareName, bool durable,
queues[name] = queue;
if (managementAgent){
- ManagementObjectQueue::shared_ptr mgmtObject(new ManagementObjectQueue (name, durable, autoDelete));
+ ManagementObjectQueue::shared_ptr mgmtObject
+ (new ManagementObjectQueue (managementVhost->getObjectId (), name, durable, autoDelete));
queue->setMgmt (mgmtObject);
managementAgent->addObject(dynamic_pointer_cast<ManagementObject>(mgmtObject));
@@ -115,3 +116,7 @@ ManagementAgent::shared_ptr QueueRegistry::getManagementAgent (void)
return managementAgent;
}
+void QueueRegistry::setManagementVhost (ManagementObject::shared_ptr vhost)
+{
+ managementVhost = vhost;
+}