diff options
| author | Ted Ross <tross@apache.org> | 2010-08-02 16:44:55 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-08-02 16:44:55 +0000 |
| commit | 0bb3b154e3357ba14bfd3b1c04617c0ad16000c2 (patch) | |
| tree | 7524164bdd9ec4f2cbf1a5a9791bc3648e3033a2 /cpp/src/qpid/agent | |
| parent | 890c2c8a5ddabcbeff513ff925aee61ffb76bc39 (diff) | |
| download | qpid-python-0bb3b154e3357ba14bfd3b1c04617c0ad16000c2.tar.gz | |
Fixed bug in setting of the app-id header (it was set in the application-headers rather than
the message-properties).
Made the broker agent more selective about when it broadcasts console-added messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/agent')
| -rw-r--r-- | cpp/src/qpid/agent/ManagementAgentImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index b7d5ad7d7b..50301f77c8 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -1208,7 +1208,6 @@ void ManagementAgentImpl::ConnectionThread::sendBuffer(const string& data, for (i = headers.begin(); i != headers.end(); ++i) { msg.getHeaders().setString(i->first, i->second.asString()); } - msg.getHeaders().setString("app_id", "qmf2"); msg.setData(data); sendMessage(msg, exchange, routingKey); @@ -1233,6 +1232,7 @@ void ManagementAgentImpl::ConnectionThread::sendMessage(Message msg, msg.getDeliveryProperties().setRoutingKey(routingKey); msg.getMessageProperties().setReplyTo(ReplyTo("amq.direct", queueName.str())); msg.getMessageProperties().getApplicationHeaders().setString("qmf.agent", agent.name_address); + msg.getMessageProperties().setAppId("qmf2"); try { session.messageTransfer(arg::content=msg, arg::destination=exchange); } catch(exception& e) { |
