activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r386215 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
Date Wed, 15 Mar 2006 23:29:41 GMT
Author: jstrachan
Date: Wed Mar 15 15:29:39 2006
New Revision: 386215

URL: http://svn.apache.org/viewcvs?rev=386215&view=rev
Log:
fixed bug which was exposed by the Stomp Ruby client. (We could really do with a maven integration
build project that runs the C, C++, C# and Ruby code against a running broker)

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

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java?rev=386215&r1=386214&r2=386215&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
Wed Mar 15 15:29:39 2006
@@ -79,8 +79,7 @@
             builder.setBody(((ActiveMQTextMessage)m).getText().getBytes("UTF-8"));
         } else if( m.getDataStructureType() == ActiveMQBytesMessage.DATA_STRUCTURE_TYPE )
{
             ActiveMQBytesMessage msg = (ActiveMQBytesMessage)m;
-            byte data[] = new byte[(int) msg.getBodyLength()];
-            msg.readBytes(data);
+            byte[] data = msg.getContent().getData();
             builder.setBody(data);
         }
         



Mime
View raw message