Author: fmoga
Date: Fri Feb 11 20:08:28 2011
New Revision: 1069937
URL: http://svn.apache.org/viewvc?rev=1069937&view=rev
Log:
Copy Message bindingContext from forward message to callback message.
Modified:
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
Modified:
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
URL:
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java?rev=1069937&r1=1069936&r2=1069937&view=diff
==============================================================================
---
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
(original)
+++
tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java
Fri Feb 11 20:08:28 2011
@@ -310,6 +310,11 @@ public class JDKInvocationHandler implem
// 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"