[jboss-jira] [JBoss JIRA] (EJBTHREE-1604) Do not create new WebServiceContext when already provided
Alessio Soldano (Resolved) (JIRA)
jira-events at lists.jboss.org
Mon Nov 7 04:51:47 EST 2011
[ https://issues.jboss.org/browse/EJBTHREE-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessio Soldano resolved EJBTHREE-1604.
---------------------------------------
Resolution: Out of Date
> Do not create new WebServiceContext when already provided
> ----------------------------------------------------------
>
> Key: EJBTHREE-1604
> URL: https://issues.jboss.org/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, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list