[jboss-user] [JBoss Web Services CXF] - XTS tests broken in AS trunk after switch to CXF stack in 3.3.0
Alessio Soldano
do-not-reply at jboss.com
Thu Jun 10 10:57:36 EDT 2010
Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] replied to the discussion
"XTS tests broken in AS trunk after switch to CXF stack in 3.3.0"
To view the discussion, visit: http://community.jboss.org/message/547398#547398
--------------------------------------------------------------
> Andrew Dinn wrote:
>
> A simpler solution might be to store the current endpoint in the runnable created in ContextUtils.rebaseResponse and then restore it when processing continues i.e.
> > final Endpoint ep = EndpointAssociation,.getEndpoint()
> >
> >
> > // pause dispatch on current thread ...
> > inMessage.getInterceptorChain().pause();
> >
> >
> > // ... and resume on executor thread
> > getExecutor(inMessage).execute(new Runnable() {
> > Endpoint savedEp = ep;
> > public void run() {
> > EndpointAssociation.setEndpoint(savedEp);
> > inMessage.getInterceptorChain().resume();
> > }
> > });
> >
>
> Of course this also means that EndpointAssociation can be changed to use a conventional ThreadLocal rather than an InheritedThreadLocal to hold the association.
Yes, this would be simpler, but ContextUtils lives in Apache CXF which of course cannot use JBossWS stuff directly. Hence the need for adding the Endpoint reference while we're still in jbossws code, so that we can later find it in the invoker once CXF returns control to JBossWS (in a different thread)
I'll see what we can do in any case :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547398#547398]
Start a new discussion in JBoss Web Services CXF at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2046]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100610/b10895be/attachment-0001.html
More information about the jboss-user
mailing list