Hi,

Thanks for the feedback, I'll have a look at this when implementing.

Regards,

Seán.


> -----Original Message-----
> From: Jiang, Ning (Willem) [mailto:[EMAIL PROTECTED]
> Sent: 10 January 2007 03:29
> To: [email protected]
> Subject: RE: Registering a listener to server events
> 
> 
> Hi
> 
> The modification of the API is OK for me.
> 
> The CXF management use the event for notification of the 
> managed component creatation and removing.
> 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?
> 
> Willem.
> 
> -----Original Message-----
> From: Daniel Kulp [mailto:[EMAIL PROTECTED]
> Sent: Tue 1/9/2007 23:00
> To: [email protected]
> Subject: Re: Registering a listener to server events
>  
> 
> Sean,
> 
> 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?   
> 
> Dan
> 
> 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
> IONA
> P: 781-902-8727    C: 508-380-7194
> [EMAIL PROTECTED]
> 
> 
> 

Reply via email to