summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qmf/engine/Agent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qmf/engine/Agent.cpp b/cpp/src/qmf/engine/Agent.cpp
index 64c5961385..067f53471f 100644
--- a/cpp/src/qmf/engine/Agent.cpp
+++ b/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);