activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r394145 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
Date Fri, 14 Apr 2006 17:22:44 GMT
Author: chirino
Date: Fri Apr 14 10:22:41 2006
New Revision: 394145

URL: http://svn.apache.org/viewcvs?rev=394145&view=rev
Log:
ah.. onMesage was causing the bytes messages content to be nulled..  setting the readOnly
properties manually.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java?rev=394145&r1=394144&r2=394145&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
Fri Apr 14 10:22:41 2006
@@ -125,8 +125,9 @@
             msg.setTransactionId(tx_id);
         }
         
-        msg.onSend();
-        
+        msg.setReadOnlyBody(true);
+        msg.setReadOnlyProperties(true);
+
         return new CommandEnvelope(msg, headers);
     }
 



Mime
View raw message