Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2393B186B7 for ; Thu, 18 Jun 2015 00:30:08 +0000 (UTC) Received: (qmail 45239 invoked by uid 500); 18 Jun 2015 00:30:07 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 45170 invoked by uid 500); 18 Jun 2015 00:30:07 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 45158 invoked by uid 99); 18 Jun 2015 00:30:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 00:30:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jasonmpell@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 00:27:53 +0000 Received: by labbc20 with SMTP id bc20so44227631lab.1 for ; Wed, 17 Jun 2015 17:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=SWlH8W9Gsc77RqDyt5ecX+hr3AQISXl5x1PFRPS9x6U=; b=WgVEshEd9wCBpUJj3OgCxOWzNzKqOySe9I7C8TPtfD3q/FsX9GkddDcW3peXl/Rxox B2ONryP4ZedA2UQ3JNUoPbdWtnSwEoB72IjRlNeEsd3VqHc/ZtoZ66swFPVaXbYvKVeA 5pT2VVcn/VA2+oONOEIenvqS100kueeeJCn0aDS/Udc9gqLEKlwBBFAD8c8q+lZ8jVNw 21wwX5JHr4vf7vn3zHvJo6aE8QMIF5T+A80BwIJIlsAFHgPwPE6klrGYXDPM/u9cJxxt lopQopeHOM3jW4/L0theEP6LSFsuXtHpTV43Nlk3Lo6uhr0TGoFEoSPtSGAFWWcAiQlS +cFA== MIME-Version: 1.0 X-Received: by 10.152.238.39 with SMTP id vh7mr10346010lac.71.1434587381673; Wed, 17 Jun 2015 17:29:41 -0700 (PDT) Sender: jasonmpell@gmail.com Received: by 10.153.8.200 with HTTP; Wed, 17 Jun 2015 17:29:41 -0700 (PDT) Received: by 10.153.8.200 with HTTP; Wed, 17 Jun 2015 17:29:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Jun 2015 10:29:41 +1000 X-Google-Sender-Auth: 7qNGKAHd5mLxQYhFd89vB-7ImVs Message-ID: Subject: Re: Enhance ServerLifeCycleListener to include create server event From: Jason Pell To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=001a1133b44e48b8380518bfe766 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133b44e48b8380518bfe766 Content-Type: text/plain; charset=UTF-8 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 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. > > > https://github.com/pellcorp/JavaFirst/blob/cxf27/JavaFirst/src/main/java/com/pellcorp/cxf/DelegateServerLifeCycleManagerImpl.java > > > --001a1133b44e48b8380518bfe766--