No Java thing should ever have a concept of 'home directory'.

The closest thing that some products have is an environment variable
("ANT_HOME", "JAVA_HOME") that it uses to find its installation.  

I don't think Axis needs such a thing.  Any paths like that should be
configured by properties either provided to the JVM or from the WSDD
file.

Note that Axis 1.x has a (complex!) system using commons-discovery of
allowing things to be overridden in various ways.  While I was opposed
to this during 1.0 development (complex!), I have since seen the error
of my ways and have taken advantage of this system many times when
embedding Axis in our products.

--
Tom Jordahl
Macromedia Server Development

> -----Original Message-----
> From: Srinath Perera [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 25, 2005 9:56 PM
> To: [email protected]
> Subject: Re: [Axis2] Loading axis module from a jar file
> 
> 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 <[EMAIL PROTECTED]> wrote:
> >
> > Hi all;
> >
> > At the last chat we decide to bundle ws modules into axis2
distribution
> and
> > without given the repository file name provide a way to engage
modules.
> So
> > in that case axis2 distribution archive file might look like below;
> >
> > Axis2.jar
> >   META-INF
> >   org/apache/axis/.....
> >   modules/
> >      addressing.mar
> >      rm.mar
> >
> > In this case deployment will work as follows;
> >   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
> > it check inside   user.dir/Axis2Home/modules/    directory and if
the
> > required module found deploye that module and engage that , if it
dose
> not
> > available there then
> >
> > 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.
> >
> > In this  case I made some assumptions
> >  1. Assumed module archive file name equal to module + .mar
> >  2. If the module archive found in the classpath extract into
> > "user.dir/Axis2Home/modules/ "
> >
> >
> > Comments ?
> >
> > Thanks and regards
> > Deepal

Reply via email to