cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang, Ning \(Willem\)" <>
Subject RE: Registering a listener to server events
Date Wed, 10 Jan 2007 03:29:16 GMT

The modification of the API is OK for me.

The CXF management use the event for notification of the managed component creatation and
You can look into cxf-common-utilitise project's org.apache.cxf.event package and cxf-rt-management
project for more information.
And in the cxf-rt-core's workqueue , you can find the code for sending event.

IMO, we can set the EventProcessImpl as the ServerLifeCycleListener, so the management can
get the server start and stop notification.
But for more general considreation , I think event would be a better way. 

Any thoughts?


-----Original Message-----
From: Daniel Kulp []
Sent: Tue 1/9/2007 23:00
Subject: Re: Registering a listener to server events


Whatever is done, the JMX management stuff should definitely be changed over 
to using the same mechanism.  Actually, I'm not sure what mechanism is 
currently used for the JMX stuff.   Did you look at that to see how it knows 
when services are added/removed?   


On Monday 08 January 2007 10:37, O'Callaghan, Sean wrote:
> 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.

J. Daniel Kulp
Principal Engineer
P: 781-902-8727    C: 508-380-7194

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