qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eal...@apache.org
Subject [2/2] qpid-dispatch git commit: DISPATCH-861 For latest rhea.js move the reply_to:, to:, and correlation_id: fields out of message properties
Date Mon, 30 Oct 2017 19:23:48 GMT
DISPATCH-861 For latest rhea.js move the reply_to:, to:, and correlation_id: fields out of
message properties


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/eaa8901c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/eaa8901c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/eaa8901c

Branch: refs/heads/master
Commit: eaa8901c7f64c6625a09bcd4900b28ae4888c705
Parents: fff3846
Author: Ernest Allen <eallen@redhat.com>
Authored: Mon Oct 30 15:23:08 2017 -0400
Committer: Ernest Allen <eallen@redhat.com>
Committed: Mon Oct 30 15:23:08 2017 -0400

----------------------------------------------------------------------
 console/stand-alone/plugin/js/qdrService.js | 20 ++++++++------------
 console/stand-alone/plugin/lib/rhea-min.js  | 12 ++++++------
 2 files changed, 14 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/eaa8901c/console/stand-alone/plugin/js/qdrService.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrService.js b/console/stand-alone/plugin/js/qdrService.js
index a9c15e7..62938d2 100644
--- a/console/stand-alone/plugin/js/qdrService.js
+++ b/console/stand-alone/plugin/js/qdrService.js
@@ -175,7 +175,7 @@ console.dump(e)
         },
         // called by receiver's on('message') handler when a response arrives
         resolve: function(context) {
-          var correlationID = context.message.properties.correlation_id;
+          var correlationID = context.message.correlation_id;
           this._objects[correlationID].resolver(context.message.body, context);
           delete this._objects[correlationID];
         },
@@ -803,8 +803,8 @@ console.dump(e)
             }
           }
           self.schema = response;
+          callback()
         }, ret.error);
-        callback()
       },
 
       getNodeInfo: function(nodeName, entity, attrs, q, callback) {
@@ -868,11 +868,9 @@ console.dump(e)
           }
           var msg = {
             body: attrs,
-            properties: {
-              to: fullAddr,
-              reply_to: self.receiver.remote.attach.source.address,
-              correlation_id: ret.id
-            },
+            to: fullAddr,
+            reply_to: self.receiver.remote.attach.source.address,
+            correlation_id: ret.id,
             application_properties: application_properties
           }
           self.sender.send(msg);
@@ -932,11 +930,9 @@ console.dump(e)
 
           self.sender.send({
             body: body,
-            properties: {
-              to: to,
-              reply_to: self.receiver.remote.attach.source.address,
-              correlation_id: ret.id
-            },
+            to: to,
+            reply_to: self.receiver.remote.attach.source.address,
+            correlation_id: ret.id,
             application_properties: application_properties
           })
         } catch (e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message