cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O'Callaghan, Sean" <sean.ocallag...@iona.com>
Subject Registering a listener to server events
Date Mon, 08 Jan 2007 15:37:08 GMT
Hi,
 
I'd like to be able to recieve notification of when an endpoints server starts and stops,
and get info on that server instance.
 
At the moment there does not appear to be anyway to hook into such lifecycle so would like
to propose adding in a ServerLifeCycleManager and ServerLifeCycleListener to the api's.
 
Something along the lines of :
 
org.apache.cxf.endpoint.ServerLifeCycleManager { 
        startServer(org.apache.cxf.endpoint.Server server)
        stopServer(org.apache.cxf.endpoint.Server  server)
        registerListener(ServerLifeCycleListener listener)
        unRegisterListener(ServerLifeCycleListener listener)
    }
 
  org.apache.cxf.endpoint.ServerLifeCycleListener {
        startServer(org.apache.cxf.endpoint.Server server)
        stopServer(org.apache.cxf.endpoint.Server server) 
  }
 
where the ServerImpl would be modified to access the ServerLifeCycleManager.
 
Does this approach seem okay to people or is there another mechanism already within CXF that
can do this.
 
Thanks,
 
Seán.
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message