summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src/main/java
diff options
context:
space:
mode:
authorfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-02-11 20:08:28 +0000
committerfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-02-11 20:08:28 +0000
commit9ea0c9346ce3d4ecdb617a81b28dfd6e2ed6174e (patch)
treeaa1ada0e1e1eb56234eb5ef50f1a483e86ebe194 /sca-java-2.x/trunk/modules/core/src/main/java
parent78934ccb57d0b3a297aa37c7eb1c7d16abfce7b4 (diff)
Copy Message bindingContext from forward message to callback message.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1069937 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
index 5bb2354520..a19508c218 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
@@ -310,6 +310,11 @@ public class JDKInvocationHandler implements InvocationHandler, Serializable {
// Deal with header information that needs to be copied from the message context to the new message...
transferMessageHeaders( msg, msgContext);
+ // Preserve binding context
+ if (msgContext != null) {
+ msg.setBindingContext(msgContext.getBindingContext());
+ }
+
ThreadMessageContext.setMessageContext(msg);
// If there is a supplied message ID, place its value into the Message Header under "MESSAGE_ID"