Author: alessio.soldano(a)jboss.com
Date: 2008-11-28 08:34:58 -0500 (Fri, 28 Nov 2008)
New Revision: 8813
Modified:
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java
Log:
[JBWS-2257] Adding Metro provided WebServiceContext to the invocation context
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:28:56 UTC (rev 8812)
+++
stack/metro/trunk/modules/server/src/main/java/org/jboss/wsf/stack/metro/InvokerEJB3.java 2008-11-28
13:34:58 UTC (rev 8813)
@@ -27,6 +27,7 @@
import javax.ejb.EJBException;
import javax.xml.ws.Provider;
import javax.xml.ws.WebFault;
+import javax.xml.ws.WebServiceContext;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.handler.MessageContext;
@@ -85,6 +86,7 @@
InvocationHandler invocationHandler = endpoint.getInvocationHandler();
Invocation invocation = invocationHandler.createInvocation();
invocation.getInvocationContext().addAttachment(MessageContext.class,
this.webServiceCtx.getMessageContext());
+ invocation.getInvocationContext().addAttachment(WebServiceContext.class,
this.webServiceCtx);
invocation.setJavaMethod(m);
invocation.setArgs(args);