diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java b/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java index 19dca52e5d..9991219511 100644 --- a/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java @@ -125,8 +125,9 @@ class Send implements StompCommand { msg.setTransactionId(tx_id); } - msg.onSend(); - + msg.setReadOnlyBody(true); + msg.setReadOnlyProperties(true); + return new CommandEnvelope(msg, headers); }