You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ma...@apache.org on 2017/02/18 13:39:11 UTC
[1/2] activemq-artemis git commit: NO-JIRA Send MQTT WILL outside of
Server Session
Repository: activemq-artemis
Updated Branches:
refs/heads/master 06688f5c3 -> 64b55778a
NO-JIRA Send MQTT WILL outside of Server Session
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/8b51ec27
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8b51ec27
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8b51ec27
Branch: refs/heads/master
Commit: 8b51ec27db2e201c604e8178a574e344d73b033f
Parents: 06688f5
Author: Martyn Taylor <mt...@redhat.com>
Authored: Sat Feb 18 13:31:57 2017 +0000
Committer: Martyn Taylor <mt...@redhat.com>
Committed: Sat Feb 18 13:31:57 2017 +0000
----------------------------------------------------------------------
.../artemis/core/protocol/mqtt/MQTTPublishManager.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/8b51ec27/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java
index 76f15c0..f0385dc 100644
--- a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java
+++ b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java
@@ -161,7 +161,12 @@ public class MQTTPublishManager {
Transaction tx = session.getServerSession().newTransaction();
try {
- session.getServerSession().send(tx, serverMessage, true, false);
+ if (internal) {
+ session.getServer().getPostOffice().route(serverMessage, tx, true);
+ } else {
+ session.getServerSession().send(tx, serverMessage, true, false);
+ }
+
if (retain) {
boolean reset = payload instanceof EmptyByteBuf || payload.capacity() == 0;
session.getRetainMessageManager().handleRetainedMessage(serverMessage, topic, reset, tx);
[2/2] activemq-artemis git commit: This closes #1027
Posted by ma...@apache.org.
This closes #1027
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/64b55778
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/64b55778
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/64b55778
Branch: refs/heads/master
Commit: 64b55778aa14a1ec50975585d215102aaad29a9f
Parents: 06688f5 8b51ec2
Author: Martyn Taylor <mt...@redhat.com>
Authored: Sat Feb 18 13:38:55 2017 +0000
Committer: Martyn Taylor <mt...@redhat.com>
Committed: Sat Feb 18 13:38:55 2017 +0000
----------------------------------------------------------------------
.../artemis/core/protocol/mqtt/MQTTPublishManager.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------