[ 
https://issues.apache.org/jira/browse/CXF-3723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084001#comment-13084001
 ] 

Xilai Dai commented on CXF-3723:
--------------------------------

>From testing with these fix, clientCreated() get invoked on sprint created 
>clients. Thanks!

but on the other side, now startServer() of ServerLifeCycleListener and 
clientCreated() of ClientLifeCycleListener will still not get invoked on jave 
code created clients which using JaxWsProxyFactoryBean.

In our application, spring based clients and code based clients both be used. 
and from testing result, we have to select one either using spring listener 
bean or using xxx.registerListener() code, if both have been used, then 
clientCreated() or startServer() will get invoded twice!


> clientCreated() of ClientLifeCycleListener can't be invoked on Spring created 
> clients
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-3723
>                 URL: https://issues.apache.org/jira/browse/CXF-3723
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.5
>            Reporter: Xilai Dai
>            Assignee: Daniel Kulp
>              Labels: ClientLifeCycleListener
>             Fix For: 2.4.2
>
>         Attachments: testlifecycle.zip, testlifecycle_bundle.zip
>
>
> when create client with spring bean like this: 
>       <jaxws:client id="test_client" 
>         address="http://localhost:8080/testlifecycle/services/GreeterService";
>               serviceClass="org.talend.esb.examples.sam.lifecycle.Greeter">
>       </jaxws:client>
> clientCreated() of ClientLifeCycleListener can't be invoked; 
> if using java codes: 
> JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
> factory.setServiceClass(org.talend.esb.examples.sam.lifecycle.Greeter.class);
> factory.setAddress("http://localhost:8080/testlifecycle/services/GreeterService";);
> client = (Greeter)factory.create();
> ...
> clientCreated() of ClientLifeCycleListener has been invokded successful!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to