You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/08/09 18:22:27 UTC

[jira] [Commented] (CXF-3723) clientCreated() of ClientLifeCycleListener can't be invoked on Spring created clients

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

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

Can you create a testcase?

I just tested and it does look like the clientCreated is being called correctly when the bean is created.   Keep in mind, the jaxws:clients are lazy-init=true and thus are not created up front.   They would be created when the bean is looked up from the context.   That is when the clientCreated would be called.

> 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
>
> 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