GitHub user gaohoward opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1729

    ARTEMIS-1566 Openwire client can't receive compressed messages

    When openwire client uses compressed option to send messages
    (jms.useCompression=true) openwire client failed to receive them.
    The reason is in OpenwireMessageConverter.toAMQMessage():
    
    1. message.setContent() should be called after setting properties
     (It will cause the compressed content to decompressed before delivering to 
clients)
    2. message.onSend() should not be called here (it should be used
    by producers. If used here it changes the internal flags of the
    message and cause receive to fail).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gaohoward/activemq-artemis fm_943

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1729.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1729
    
----
commit 121de284d251cf332a98eb8d078ef6e1fd62cf0c
Author: Howard Gao <[email protected]>
Date:   2017-12-19T13:15:05Z

    ARTEMIS-1566 Openwire client can't receive compressed messages
    
    When openwire client uses compressed option to send messages
    (jms.useCompression=true) openwire client failed to receive them.
    The reason is in OpenwireMessageConverter.toAMQMessage():
    
    1. message.setContent() should be called after setting properties
     (It will cause the compressed content to decompressed before delivering to 
clients)
    2. message.onSend() should not be called here (it should be used
    by producers. If used here it changes the internal flags of the
    message and cause receive to fail).

----


---

Reply via email to