cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-3723) clientCreated() of ClientLifeCycleListener can't be invoked on Spring created clients
Date Wed, 10 Aug 2011 15:20:26 GMT

     [ https://issues.apache.org/jira/browse/CXF-3723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-3723.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: NeedMoreInfo)
                   2.4.2
         Assignee: Daniel Kulp


With the fix to CXF-3728, this is now working if you move your listener beans to be actual
spring beans.  There seems to be a bug in osgi:service that it's ignoring the depends-on stuff
so it's generally creating the client before the listeners are created.

> 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

        

Mime
View raw message