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/02 19:13:27 UTC

[jira] [Resolved] (CXF-3697) the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed

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

Daniel Kulp resolved CXF-3697.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.2
                   2.3.6

> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3697
>                 URL: https://issues.apache.org/jira/browse/CXF-3697
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus
>    Affects Versions: 2.4.1, 2.5
>            Reporter: Xilai Dai
>            Assignee: Daniel Kulp
>              Labels: ClientLifeCycleListener
>             Fix For: 2.3.6, 2.4.2
>
>         Attachments: patch.txt, testlifecycle.zip
>
>
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed.
> sample code:
> import org.apache.cxf.endpoint.ClientLifeCycleListener;
> public class ClientListenerImpl implements ClientLifeCycleListener{
>   public void clientCreated(Client client) {
>    System.out.println("clientCreated!");
>   }
>   public void clientDestroyed(Client client) {
>    System.out.println("clientDestroyed!");
>   }
> }
> ClientLifeCycleManager clcm = bus.getExtension(ClientLifeCycleManager.class);
> if (null != clcm){
>   ClientListenerImpl cltListener = new ClientListenerImpl();
>   clcm.registerListener(cltListener);
> }

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