Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only reuse the context for the request router if it is remote [IMMUTA…
…NT-589]
  • Loading branch information
tobias committed Nov 3, 2015
1 parent 446835d commit b82cdc4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -82,7 +82,8 @@ public Response request(Object content, Codec codec,
routerOpts.put(ListenOption.SELECTOR,
JMSMessage.REQUEST_NODE_ID_PROPERTY + " = '" + nodeId + "' AND " +
JMSMessage.SYNC_RESPONSE_PROPERTY + " = TRUE");
if (context != null) {
if (context != null &&
context.isRemote()) {
routerOpts.put(ListenOption.CONTEXT, context);
}

Expand Down

0 comments on commit b82cdc4

Please sign in to comment.