[jbossts-issues] [JBoss JIRA] (JBTM-986) Automatically setup the client side handler chain

Paul Robinson (JIRA) jira-events at lists.jboss.org
Mon Jan 28 14:25:47 EST 2013


    [ https://issues.jboss.org/browse/JBTM-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750864#comment-12750864 ] 

Paul Robinson commented on JBTM-986:
------------------------------------

Info from Alessio. I don't think he will mind me quoting him here:

{quote}
Hi Paul,
I've been having a look at your scenario and think I have something that
could address your needs. I've just added the following class to the
jbossws-api: [1]. You could basically extend it, override the
initializeBindingProvider method to set jaxws handlers in the passed
BindingProvider instance (it will be your port) and do whatever you need
to do for XTS in the handler you added.
The feature above is now detected in the jbossws flavour of the jaxws
ServiceDelegate CXF impl, see class JBossWSServiceImpl in [2].
The jira for this new feature is https://issues.jboss.org/browse/JBWS-3591 .
I believe this should be ok, let me know what you think, or let's simply
chat on IRC.
Cheers
Alessio

[1]
http://anonsvn.jboss.org/repos/jbossws/api/trunk/src/main/java/org/jboss/ws/api/configuration/AbstractClientFeature.java
[2]
http://anonsvn.jboss.org/repos/jbossws/stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ProviderImpl.java
{quote}
                
> Automatically setup the client side handler chain
> -------------------------------------------------
>
>                 Key: JBTM-986
>                 URL: https://issues.jboss.org/browse/JBTM-986
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: XTS
>            Reporter: Paul Robinson
>            Assignee: Gytis Trikleris
>              Labels: assign
>             Fix For: 5.0.0.M2
>
>   Original Estimate: 4 days
>          Time Spent: 2 days, 6 hours
>  Remaining Estimate: 1 day, 2 hours
>
> When invoking a WS-AT or WS-BA Web service, the client side handler has to be added to the client stub to manage transaction context propagation. The code required to do this is as follows:
> {code}
> BindingProvider bindingProvider = (BindingProvider) client;
> List<Handler> handlers = new ArrayList<Handler>(1);
> handlers.add(new JaxWSHeaderContextProcessor());
> bindingProvider.getBinding().setHandlerChain(handlers);
> {code}
> This is not very user friendly.
> This could be done using a JAX-WS feature passed to the Client-side port.
> We also need to support client stubs created using @WebServiceRef. Here's some examples of its use:
> http://anonsvn.jboss.org/repos/jbossws/shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/
> http://anonsvn.jboss.org/repos/jbossws/shared-testsuite/trunk/testsuite/src/test/resources/jaxws/samples/webserviceref/
> http://anonsvn.jboss.org/repos/jbossws/shared-testsuite/trunk/testsuite/src/test/ant-import/build-samples-jaxws.xml
> The feature should be "enabled" by default providing the feature is enabled in the XTS server config.
> The quickstarts also need updated to use this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list