From d06a4f9aa864b15d63ee967c5337699dc76a4157 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 22 Jul 2010 21:57:37 +0000 Subject: Bugfix: agent label in wrapped (python, ruby) qmf agent was not transmitted to the consoles. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@966871 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qmf/engine/Agent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src/qmf/engine/Agent.cpp') diff --git a/qpid/cpp/src/qmf/engine/Agent.cpp b/qpid/cpp/src/qmf/engine/Agent.cpp index 64c5961385..067f53471f 100644 --- a/qpid/cpp/src/qmf/engine/Agent.cpp +++ b/qpid/cpp/src/qmf/engine/Agent.cpp @@ -238,7 +238,7 @@ AgentImpl::AgentImpl(char* _label, bool i) : assignedBrokerBank(0), assignedAgentBank(0), bootSequence(1), nextObjectId(1), nextContextNum(1), attachComplete(false) { - queueName += label; + queueName += Uuid(true).str(); } AgentImpl::~AgentImpl() @@ -334,7 +334,7 @@ void AgentImpl::startProtocol() Buffer buffer(rawbuffer, 512); Protocol::encodeHeader(buffer, Protocol::OP_ATTACH_REQUEST); - buffer.putShortString("qmfa"); + buffer.putShortString(label); systemId.encode(buffer); buffer.putLong(requestedBrokerBank); buffer.putLong(requestedAgentBank); -- cgit v1.2.1