activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r688115 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx: CompositeDataConstants.java OpenTypeSupport.java
Date Fri, 22 Aug 2008 16:39:50 GMT
Author: jstrachan
Date: Fri Aug 22 09:39:50 2008
New Revision: 688115

URL: http://svn.apache.org/viewvc?rev=688115&view=rev
Log:
added support for OriginalDestination support in JMX

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/CompositeDataConstants.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/CompositeDataConstants.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/CompositeDataConstants.java?rev=688115&r1=688114&r2=688115&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/CompositeDataConstants.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/CompositeDataConstants.java
Fri Aug 22 09:39:50 2008
@@ -28,6 +28,7 @@
     String BODY_PREVIEW = "BodyPreview";
     String CONTENT_MAP = "ContentMap";
     String MESSAGE_TEXT = "Text";
+    String ORIGINAL_DESTINATION = "OriginalDestination";
 
     // User properties
     String STRING_PROPERTIES = "StringProperties";

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java?rev=688115&r1=688114&r2=688115&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java
Fri Aug 22 09:39:50 2008
@@ -127,6 +127,7 @@
             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 @@
             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) {



Mime
View raw message