[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1604) Do not create new WebServiceContext when already provided

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Fri Nov 28 08:23:47 EST 2008


Do not create new WebServiceContext when already provided 
----------------------------------------------------------

                 Key: EJBTHREE-1604
                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1604
             Project: EJB 3.0
          Issue Type: Feature Request
            Reporter: Alessio Soldano
            Assignee: Alessio Soldano


The StatelessContainer's method invokeEndpoint(Method method, Object[] args, InvocationContextCallback invCtxCallback) currently get the WebServiceContext instance using the right jbossws-spi factory. This is an issue with the JBossWS-Metro stack as we should use the WebServiceContext it already provides.
This should be passed in as an attachment in the InvocationContextCallback.

Something like this should work:

...
WebServiceContext providedCtx = invCtxCallback.getAttachment(WebServiceContext.class);
if (providedCtx != null)
{
  //use the provided one through a delegate
  jaxwsContext = new WebServiceContextDelegate(providedCtx);
}
else
{
  //do as we used to do
  jaxwsContext = contextFactory.newWebServiceContext(InvocationType.JAXWS_EJB3, invCtxCallback.get(javax.xml.ws.handler.MessageContext.class));
}
...

This requires jbossws-spi 1.0.7 to be released and specified in the dependencies because of the WebServiceContextDelegate.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list