Issue Type: Patch Patch
Assignee: Unassigned
Components: ejb3
Created: 27/Jun/12 11:41 AM
Description:

The ejb3 client transmits all data in org.jboss.ejb.client.EJBClientInvocationContext.contextData
(see org.jboss.ejb.client.remoting.AbstractMessageWriter.writeAttachments)
The ejb remoting3 component restores this data to
org.jboss.invocation.InterceptorContext.privateData

ContextData is indexed by string, private data is an IdentityHashMap. This effectively makes it impossible to get any of the contextdata out of the private data map.

I assume the context data should be restored to the context data map

--- a/ejb3/src/main/java/org/jboss/as/ejb3/remote/protocol/versionone/MethodInvocationMessageHandler.java
+++ b/ejb3/src/main/java/org/jboss/as/ejb3/remote/protocol/versionone/MethodInvocationMessageHandler.java
@@ -277,7 +277,7 @@ class MethodInvocationMessageHandler extends EJBIdentifierBasedMessageHandler {
                 final String key = attachment.getKey();
                 final Object value = attachment.getValue();
                 // add it to the context
-                interceptorContext.putPrivateData(key, value);
+                interceptorContext.getContextData().put(key, value);
             }
         }
Project: EJB 3.0
Priority: Major Major
Reporter: Wouter De Borger
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira