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]