michaelandrepearce commented on a change in pull request #2568: ARTEMIS-2262:
Correlate management response messages with the request
URL: https://github.com/apache/activemq-artemis/pull/2568#discussion_r260478864
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
##########
@@ -781,5 +789,22 @@ private Object invokeOperation(final String resourceName,
return result;
}
+ /**
+ * Correlate management responses using the Correlation ID Pattern, if the
request supplied a correlation id,
+ * or fallback to the Message ID Pattern providing the request had a
message id.
+
+ * @param request
+ * @return correlation identify
+ */
+ private String getCorrelationIdentity(final Message request)
+ {
+ String correlationId = MessageUtil.getJMSCorrelationID(request);
Review comment:
ditto same comment lets avoid using JMS inside core.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services