Hi

How did you register the listener and create the client?
Maybe you didn't register to a right bus.

Willem

On 1/14/11 11:16 PM, Oliver Wulff wrote:
Hi there

I've registered a ClientLifeCycleListener but it is not called when the 
application makes a web service call.

I see the the listener is registered at runtime but the basic log messages to 
the console are not logged from the listener.

ClientLifeCycleManager clm = bus.getExtension(ClientLifeCycleManager.class);
if (null != clm) {
    clm.registerListener(new MonitoringClientListener());
    System.out.println("*********** MonitoringListener registered");
}

and an implementation snippet of the listener:

  public void clientCreated(Client client) {
   System.out.println("********************************************* 
clientCreated");
   
System.out.println(client.getEndpoint().getEndpointInfo().getName().toString());
  }


Are there any special circumstances where the listener is not called? Maybe 
depending on how the client/proxy is instantiated?

Thanks
Oli





--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to