Author: alessio.soldano(a)jboss.com
Date: 2008-11-28 08:38:37 -0500 (Fri, 28 Nov 2008)
New Revision: 8814
Modified:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java
Log:
[JBWS-2257][EJBTHREE-1604] Temporary setting the WebServiceContext in the MessageContext
too
Modified:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java
===================================================================
---
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java 2008-11-28
13:34:58 UTC (rev 8813)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java 2008-11-28
13:38:37 UTC (rev 8814)
@@ -85,7 +85,12 @@
Endpoint endpoint = EndpointAssociation.getEndpoint();
InvocationHandler invocationHandler = endpoint.getInvocationHandler();
Invocation invocation = invocationHandler.createInvocation();
- invocation.getInvocationContext().addAttachment(MessageContext.class,
this.webServiceCtx.getMessageContext());
+ MessageContext messageContext = this.webServiceCtx.getMessageContext();
+
+ //to be removed after EJBTHREE-1604
+ messageContext.put(WebServiceContext.class.toString(), this.webServiceCtx);
+
+ invocation.getInvocationContext().addAttachment(MessageContext.class,
messageContext);
invocation.getInvocationContext().addAttachment(WebServiceContext.class,
this.webServiceCtx);
invocation.setJavaMethod(m);
invocation.setArgs(args);