You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by gaohoward <gi...@git.apache.org> on 2017/09/18 23:52:57 UTC
[GitHub] activemq-artemis pull request #1542: ARTEMIS-1424 Openwire not work with dif...
GitHub user gaohoward opened a pull request:
https://github.com/apache/activemq-artemis/pull/1542
ARTEMIS-1424 Openwire not work with different tightEncoding options
If message senders and receivers uses different
wireformat.tightEncodingEnabled options, broker will get marshalling
problem. This is because when openwire messages are converted to
core messages, and later these core messages converted to openwire
messages, the broker uses a mashaller that comes with the connection
used to carry the messages.
For example, if a producer sents a message using option "wireformat
.tightEncodingEnabled=false" and a receiver tries to receive it
using 'true' for the same option, it'll never get it because the
broker will fail to use a "tight encoding" marshaller to
decode a 'loose encoded' message.
To fix the problem, we always use 'tight encoding' for internal
message converters.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gaohoward/activemq-artemis gentmq-743
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1542.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 #1542
----
commit f84d26ebb26b0c424ae90f994fc1aa673bbad88f
Author: Howard Gao <ho...@gmail.com>
Date: 2017-09-18T23:47:51Z
ARTEMIS-1424 Openwire not work with different tightEncoding options
If message senders and receivers uses different
wireformat.tightEncodingEnabled options, broker will get marshalling
problem. This is because when openwire messages are converted to
core messages, and later these core messages converted to openwire
messages, the broker uses a mashaller that comes with the connection
used to carry the messages.
For example, if a producer sents a message using option "wireformat
.tightEncodingEnabled=false" and a receiver tries to receive it
using 'true' for the same option, it'll never get it because the
broker will fail to use a "tight encoding" marshaller to
decode a 'loose encoded' message.
To fix the problem, we always use 'tight encoding' for internal
message converters.
----
---
[GitHub] activemq-artemis pull request #1542: ARTEMIS-1424 Openwire not work with dif...
Posted by gaohoward <gi...@git.apache.org>.
Github user gaohoward commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1542#discussion_r139854686
--- Diff: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java ---
@@ -436,11 +435,11 @@ public ServerSession getCoreSession() {
public ActiveMQServer getCoreServer() {
return this.server;
}
-
+/*
--- End diff --
doh, forgot it. I think I commented it out back then thinking it might be used somewhere else.
Thanks @tabish121 . Branch updated.
---
[GitHub] activemq-artemis pull request #1542: ARTEMIS-1424 Openwire not work with dif...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/activemq-artemis/pull/1542
---
[GitHub] activemq-artemis pull request #1542: ARTEMIS-1424 Openwire not work with dif...
Posted by tabish121 <gi...@git.apache.org>.
Github user tabish121 commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1542#discussion_r139834842
--- Diff: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java ---
@@ -436,11 +435,11 @@ public ServerSession getCoreSession() {
public ActiveMQServer getCoreServer() {
return this.server;
}
-
+/*
--- End diff --
Why comment this out, the source control maintains history so leaving old dead code in is not needed, you can just review the commit history to see it.
---