Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 60661 invoked from network); 5 Apr 2006 11:07:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 11:07:43 -0000 Received: (qmail 57472 invoked by uid 500); 5 Apr 2006 11:07:37 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 57430 invoked by uid 500); 5 Apr 2006 11:07:37 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 57419 invoked by uid 99); 5 Apr 2006 11:07:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 04:07:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Apr 2006 04:07:36 -0700 Received: (qmail 6496 invoked from network); 5 Apr 2006 11:07:12 -0000 Received: from unknown (HELO ?127.0.0.1?) (unknown) by unknown with SMTP; 5 Apr 2006 11:07:12 -0000 X-pair-Authenticated: 222.165.176.101 Message-ID: <4433A4CE.8090308@opensource.lk> Date: Wed, 05 Apr 2006 17:06:54 +0600 From: Deepal Jayasinghe User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: [axis2] refactoring deployment config configurators References: <1144234393.17474.17.camel@localhost.localdomain> In-Reply-To: <1144234393.17474.17.camel@localhost.localdomain> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I hope we have to do these changes for 1.0 release. Is that OK if I assume the changing is just adding two more AxisConfigurators and there wont be any changes to FileSystemConfigurator :) I'm +1 on adding the URL based repository support to Axis2. Sanjiva Weerawarana wrote: >Currently we have a file system based configurator for creating config >contexts which loads up axis2.xml and does various things. Unfortunately >its doing a bit more than what its name advertises. Here's a refactoring >that cleans stuff up properly: > >- create a new configurator called the ClassPathConfigurator which works >as follows: > - finds the default axis2.xml from the classpath > - finds modules from the classpath > - no services deployed by the configurator: so this is primarily for >stand-alone client scenarios >NOTE: This is basically how our client side works now. The idea is to >move the code to a specific configurator to clean up the pieces. > >- create a configurator called URLConfigurator which works as follows: > - constructor takes a URL to the axis2.xml file (or whatever the >name .. basically the URL of a resource which has axis2.xml stuff) > - if the URL is null, then a default axis2.xml is loaded from the >classpath (as above) > [This may seems a bit weird, but its designed to make the simple case >simple: in many cases there's no need to change the default axis2.xml.] > - configurator has a method called loadRepository which takes a URL to >the repository > - if the URL is a file: URL, then we treat that as we do now and load >the stuff off the file system .. and support hot deployment etc. > - if the URL is another kind of URL, then we assume the shape of the >repository pointed to is as follows: > .../ > services/ > services.list > service1.aar > service2.aar > ... > modules/ > modules.list > module1.mar > module2.mar > ... > > - Note that we need the services.list and modules.list files because >there's no way to generically get a list of stuff from a URL to a >directory. (And no, we're not going to do screen scraping.) > - The services.list and modules.list files are simply naming the .aar >and .mar files respectively one per line. > >This is basically a small cleanup .. > >Sanjiva. > > > > > -- Thanks, Deepal ................................................................ ~Future is Open~