cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xilai Dai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-3697) the clientDestroyed() of ClientLifeCycleListener impl not be called when the service undeployed
Date Mon, 01 Aug 2011 01:49:09 GMT

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

Xilai Dai updated CXF-3697:
---------------------------

    Description: 
the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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);

}

  was:
ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.

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

}

        Summary: the clientDestroyed() of ClientLifeCycleListener impl not be called when
the service undeployed  (was: clientCreated() and clientDestroyed() not be called when implement
ClientLifeCycleListener and register it with ClientLifeCycleManager)

> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service
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
>              Labels: ClientLifeCycleListener
>
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service
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

        

Mime
View raw message