[hornetq-commits] JBoss hornetq SVN: r8880 - trunk/src/main/org/hornetq/core/protocol/stomp.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Feb 16 09:12:27 EST 2010


Author: jmesnil
Date: 2010-02-16 09:12:26 -0500 (Tue, 16 Feb 2010)
New Revision: 8880

Modified:
   trunk/src/main/org/hornetq/core/protocol/stomp/StompUtils.java
Log:
https://jira.jboss.org/jira/browse/HORNETQ-129: Implement STOMP v1.0

* do not put in Stomp MESSAGE Frame JMS properties which have their own headers specified by Stomp

Modified: trunk/src/main/org/hornetq/core/protocol/stomp/StompUtils.java
===================================================================
--- trunk/src/main/org/hornetq/core/protocol/stomp/StompUtils.java	2010-02-16 13:49:25 UTC (rev 8879)
+++ trunk/src/main/org/hornetq/core/protocol/stomp/StompUtils.java	2010-02-16 14:12:26 UTC (rev 8880)
@@ -111,6 +111,13 @@
       Set<SimpleString> names = message.getPropertyNames();
       for (SimpleString name : names)
       {
+         if (name.equals(ClientMessageImpl.REPLYTO_HEADER_NAME) ||
+                  name.toString().equals("JMSType") ||
+                  name.toString().equals("JMSCorrelationID"))
+         {
+            continue;
+         }
+
          headers.put(name.toString(), message.getObjectProperty(name));
       }
    }



More information about the hornetq-commits mailing list