mirror of https://github.com/apache/activemq.git
added support for OriginalDestination support in JMX
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@688115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
46812e240d
commit
dd64c8bc8e
|
@ -28,6 +28,7 @@ public interface CompositeDataConstants {
|
|||
String BODY_PREVIEW = "BodyPreview";
|
||||
String CONTENT_MAP = "ContentMap";
|
||||
String MESSAGE_TEXT = "Text";
|
||||
String ORIGINAL_DESTINATION = "OriginalDestination";
|
||||
|
||||
// User properties
|
||||
String STRING_PROPERTIES = "StringProperties";
|
||||
|
|
|
@ -127,6 +127,7 @@ public final class OpenTypeSupport {
|
|||
addItem("JMSTimestamp", "JMSTimestamp", SimpleType.DATE);
|
||||
addItem(JMSXGROUP_ID, "Message Group ID", SimpleType.STRING);
|
||||
addItem(JMSXGROUP_SEQ, "Message Group Sequence Number", SimpleType.INTEGER);
|
||||
addItem(ORIGINAL_DESTINATION, "Original Destination Before Senting To DLQ", SimpleType.STRING);
|
||||
addItem(CompositeDataConstants.PROPERTIES, "User Properties Text", SimpleType.STRING);
|
||||
|
||||
// now lets expose the type safe properties
|
||||
|
@ -164,6 +165,7 @@ public final class OpenTypeSupport {
|
|||
rc.put("JMSTimestamp", new Date(m.getJMSTimestamp()));
|
||||
rc.put(JMSXGROUP_ID, m.getGroupID());
|
||||
rc.put(JMSXGROUP_SEQ, m.getGroupSequence());
|
||||
rc.put(ORIGINAL_DESTINATION, toString(m.getOriginalDestination()));
|
||||
try {
|
||||
rc.put(CompositeDataConstants.PROPERTIES, "" + m.getProperties());
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue