Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 90292 invoked from network); 26 May 2005 01:55:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 May 2005 01:55:43 -0000 Received: (qmail 8079 invoked by uid 500); 26 May 2005 01:55:37 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 8061 invoked by uid 500); 26 May 2005 01:55: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 8044 invoked by uid 99); 26 May 2005 01:55:37 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hemapani@gmail.com designates 64.233.184.199 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 25 May 2005 18:55:35 -0700 Received: by wproxy.gmail.com with SMTP id 37so1070557wra for ; Wed, 25 May 2005 18:55:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EpnIPBLTAQRKuJNxFNkTWGzjY+p2MqFJ3jjyoNBUWKrQrNOTxAIgnWlxPLWtghDl+kPervAYjHK1dhr5QkjnN6ut0wznOQN2Nvn1eKWeMVQRiU46TESHgnEYuRGW2Qol40C5JWVMiAyziqoQDzjTF/kUKGtuDzi4S1mOT0c1/XU= Received: by 10.54.138.5 with SMTP id l5mr1626903wrd; Wed, 25 May 2005 18:55:34 -0700 (PDT) Received: by 10.54.94.4 with HTTP; Wed, 25 May 2005 18:55:34 -0700 (PDT) Message-ID: Date: Thu, 26 May 2005 07:55:34 +0600 From: Srinath Perera Reply-To: Srinath Perera To: axis-dev@ws.apache.org Subject: Re: [Axis2] Loading axis module from a jar file In-Reply-To: <007601c5612d$e91f6aa0$2165a8c0@Deepal> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <007601c5612d$e91f6aa0$2165a8c0@Deepal> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Deepal sounds good to me, may be we do not need looking up the home directory, and instead I prefer the current directory the code run. I am not a big fan of a any arbitroy code that runs, messes with my home direcotry :) even though they always to it ;). may be name should at lease be .axis2/.... so it is hidden Thanks Srinath On 5/25/05, Deepal Jayasinghe wrote: > =20 > Hi all;=20 > =20 > At the last chat we decide to bundle ws modules into axis2 distribution a= nd > without given the repository file name provide a way to engage modules. S= o > in that case axis2 distribution archive file might look like below;=20 > =20 > Axis2.jar=20 > META-INF=20 > org/apache/axis/.....=20 > modules/=20 > addressing.mar=20 > rm.mar=20 > =20 > In this case deployment will work as follows;=20 > when some one ask to engage a module first it check whether that module= is > available in AxisConfiguration if it found then engage that module , else= =20 > it check inside user.dir/Axis2Home/modules/ directory and if the > required module found deploye that module and engage that , if it dose no= t > available there then=20 > =20 > try to load the corresponding module.mar file form the classpath > (getResourceAsStream) if it found then read it and write that into > user.dir/Axis2Home/modules/ as new module archive file. next using that > module archive file first deploy the module and engage that module.=20 > =20 > In this case I made some assumptions=20 > 1. Assumed module archive file name equal to module + .mar=20 > 2. If the module archive found in the classpath extract into > "user.dir/Axis2Home/modules/ "=20 > =20 > =20 > Comments ?=20 > =20 > Thanks and regards=20 > Deepal