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 6A40618771 for ; Thu, 18 Jun 2015 00:38:50 +0000 (UTC) Received: (qmail 79130 invoked by uid 500); 18 Jun 2015 00:38:50 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 79071 invoked by uid 500); 18 Jun 2015 00:38:50 -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 79042 invoked by uid 99); 18 Jun 2015 00:38:49 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 00:38:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5088BC009B for ; Thu, 18 Jun 2015 00:38:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.981 X-Spam-Level: ** X-Spam-Status: No, score=2.981 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id TU6st6gXJkcT for ; Thu, 18 Jun 2015 00:38:40 +0000 (UTC) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A3DB743C92 for ; Thu, 18 Jun 2015 00:38:39 +0000 (UTC) Received: by labko7 with SMTP id ko7so44410923lab.2 for ; Wed, 17 Jun 2015 17:38:38 -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=zfwNVaVt2BUolFgkzbKafCEL/TGpMRLSydHMAZYgg+c=; b=zCObEXN2ET8RXJ3aGo7f1hqXfZ4RbqgScrVLt/Rg8XajXD3oh0MOMNv4ENxkjPdbkv O49Mts35x/5AYGb0NQbp1nyIdPwSLW9HVCrr10KSBJFNpsLTPoJ1uJNqEePjI2SxJnmA yZQdANExao52V1SNbaVb2RGm0lsw+uJKmw/6cqP84y4pqFZYEIp37VbztLpmVCNeSdiD N8SHLn/Dy5N4l1kkUpMvx+5vU4ppQxpD8jKIOqwD9UZfhOONkLpqQexKvec4dnjpCaYs Cj8k0vwc1kADtvn28cvyrvwDrdwtmdWvnpa9nBNtAI0qRAc34hn6gt/M7vixtqdnB2l0 WveQ== MIME-Version: 1.0 X-Received: by 10.112.29.209 with SMTP id m17mr10384624lbh.23.1434587918441; Wed, 17 Jun 2015 17:38:38 -0700 (PDT) Sender: jasonmpell@gmail.com Received: by 10.153.8.200 with HTTP; Wed, 17 Jun 2015 17:38:38 -0700 (PDT) Received: by 10.153.8.200 with HTTP; Wed, 17 Jun 2015 17:38:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Jun 2015 10:38:38 +1000 X-Google-Sender-Auth: wMNzG-m9t4880O4tLOglRgYkNpk Message-ID: Subject: Re: Enhance ServerLifeCycleListener to include create server event From: Jason Pell To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=001a1133f1c447234b0518c00778 --001a1133f1c447234b0518c00778 Content-Type: text/plain; charset=UTF-8 Ok I feel stupid. seems another developer on my team added another spring context loader which generated the premature event Please ignore my last 2 emails :-( On 18/06/2015 10:29 AM, "Jason Pell" wrote: > 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 >> >> >> --001a1133f1c447234b0518c00778--