git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@743258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-02-11 07:34:26 +00:00
parent 9a60743876
commit 69e5f769b2
1 changed files with 3 additions and 1 deletions

View File

@ -115,9 +115,11 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage
os = new DeflaterOutputStream(os); os = new DeflaterOutputStream(os);
} }
DataOutputStream dataOut = new DataOutputStream(os); DataOutputStream dataOut = new DataOutputStream(os);
MarshallingSupport.writeUTF8(dataOut, text); MarshallingSupport.writeUTF8(dataOut, this.text);
dataOut.close(); dataOut.close();
setContent(bytesOut.toByteSequence()); setContent(bytesOut.toByteSequence());
//see https://issues.apache.org/activemq/browse/AMQ-2103
this.text=null;
} }
} }