Description
When sending or receiving messages with the HttpTransport and the UseCompression setting enabled on the ActiveMQConnectionFactory all messages are sent and received with Message bodies correctly compressed except for the TextMessage which is not sent with contents compressed (receipt does work). The problem is that the XStreamWireFormat doesn't call beforeMarshall in its marshalText method for any MarshalAware commands that are sent (in the case of MessageDispatch it must do this on the inner Message object).