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

Daniel Kulp commented on CXF-3723:
----------------------------------

In the first case, that's completely correct.   If you commend that out, there 
is no need to create the client bean so Spring won't.   Thus, you won't see it.

Not sure on the second OSGi case.  It may be the same.   The client itself may 
not be created until something looks up the service from the registry or 
possibly when the service is first used.



> 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
>              Labels: ClientLifeCycleListener
>             Fix For: NeedMoreInfo
>
>         Attachments: testlifecycle.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