cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Pell <>
Subject Re: Enhance ServerLifeCycleListener to include create server event
Date Thu, 18 Jun 2015 00:29:41 GMT
after further interrogation of the code the start should have been called
before spring finished loading

My issue is the ServerRegistry does not contain all the jaxws:endpoints
when the spring application listener fires.

Anyone got any thoughts as to why?
On 18/06/2015 9:30 AM, "Jason Pell" <> wrote:

> Hi,
> As part of starting up my application I want to know when all services
> have started.  Unfortunately in the case of cxf, the Endpoints have all
> been created by the time I get the
> ApplicationListener<ContextRefreshedEvent> but the servers may actually
> still be starting.
> It would be useful to register a ServerLifeCycleListener which has a new
> method:
> void serverCreated(Server server);
> I could then use this to correlated the corresponding startServer(Server
> server) events to know exactly when the spring context is "really" ready.
> I know this is a compatibility issue and wanted to know what other devs
> thought of the idea and whether its ok if I implement it into 2.7, 3.x and
> 3.1?
> Or any alternatives are welcome
> Currently what I am doing is overriding the ServerLifeCycleManager and
> intercepting any ManagedEndpoint registrations and sending them onto a
> custom listener.

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