activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: [ARTEMIS-1176] Turn management reply messages into text messages
Date Tue, 23 May 2017 13:39:24 GMT
[ARTEMIS-1176] Turn management reply messages into text messages

Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/7e47dc3e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7e47dc3e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7e47dc3e

Branch: refs/heads/master
Commit: 7e47dc3e07328b46804d4c58f320bc14bf8e84c0
Parents: f84d9f8
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Fri May 19 10:00:32 2017 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue May 23 09:39:09 2017 -0400

----------------------------------------------------------------------
 .../artemis/core/server/management/impl/ManagementServiceImpl.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7e47dc3e/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
index 54be380..bb9fdb3 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
@@ -370,6 +370,7 @@ public class ManagementServiceImpl implements ManagementService {
       message = message.toCore();
       // a reply message is sent with the result stored in the message body.
       CoreMessage reply = new CoreMessage(storageManager.generateID(), 512);
+      reply.setType(Message.TEXT_TYPE);
       reply.setReplyTo(message.getReplyTo());
 
       String resourceName = message.getStringProperty(ManagementHelper.HDR_RESOURCE_NAME);


Mime
View raw message