Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 19759 invoked from network); 13 Mar 2008 10:00:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2008 10:00:48 -0000 Received: (qmail 22342 invoked by uid 500); 13 Mar 2008 10:00:44 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 22325 invoked by uid 500); 13 Mar 2008 10:00:44 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 22316 invoked by uid 99); 13 Mar 2008 10:00:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 03:00:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 10:00:07 +0000 Received: by wa-out-1112.google.com with SMTP id n4so4618071wag.6 for ; Thu, 13 Mar 2008 03:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=D/nZKB98UiFwOm109vkYeuTkJsyQessddVo+0zfHv6s=; b=QQ8ANnEyXiS+A7/GkunNi50R35K0NlKef2o990yS+Q/rURm9h8ZLfaGHGb2TRGBT/kCJLrZpRmVI5AMxamhYVbEjjKYlflXB6tldvYwOvzrejlW2y30wW4yIWX2m61xvEurgUIZlKH/ALSSWtn4WkUt4DV7ogvSRdKkIVLPa2ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=K8TUSTV3OdHTiq24TBeS679EomNjVBI3bHX0nU1oqrdqwg63uU+VgVoy3qXU4g+CfBrMyRH9QsCRXfgQltKDfK1ITCPjW3XSNE1sSQxWJ3VstOEYtm7kL7bSw1UW7WvOgboxJDfyDOaq0G7N5ZSA8R4v89rlsqtEuO3eNfSuqJo= Received: by 10.114.150.1 with SMTP id x1mr8894623wad.144.1205402418416; Thu, 13 Mar 2008 03:00:18 -0700 (PDT) Received: from ?192.168.0.183? ( [221.223.251.96]) by mx.google.com with ESMTPS id i16sm9648736wxd.30.2008.03.13.03.00.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Mar 2008 03:00:17 -0700 (PDT) Message-ID: <47D8FB0A.9000001@gmail.com> Date: Thu, 13 Mar 2008 17:59:38 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: Re: [PLEASE [DISCUSS]] Spring validation References: <61b5d9410803130054h42dbd726s716c2a5844691f8f@mail.gmail.com> In-Reply-To: <61b5d9410803130054h42dbd726s716c2a5844691f8f@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Benson, I am OK for that change, but I don't think it can save us much time when we start up the multi-endpoints without the spring validation for the CXF spring XML file . AFAIK, the spring XML files just be validated when we load the bus. When you create the endpoint from JAXWS API in CXF, CXF will grab a default bus from the BusFactory, which will return a cached bus if the default one is created. Just my 2 cents . Willem Benson Margulies wrote: > This message is an outgrowth of my performance investigations. > > We are (still?) validating spring XML files by default, at high cost. > > We control validation with a system property with a name that doesn't say > 'cxf' in it anywhere. > > I could submit the following change: > > 1) Add the name org.apache.cxf.spring.validation.mode as a (compatible) > replacement for spring.validation.mode. > > 2) Treat the default as 'none'. > > Or, I could make the BusApplicationContext force validation off when reading > any file with a pathname beginning with META-INF:/cxf (e.g., one of ours), > so that users still get validation by default. > > Please send along thoughts. > >