axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjiva Weerawarana <sanj...@opensource.lk>
Subject Re: [Axis2] Usage of System.setProperty
Date Tue, 25 Apr 2006 00:24:22 GMT
On Mon, 2006-04-24 at 22:36 +0200, Jens Schumann wrote:
> Hi Axis-dev Team,
> 
> While browsing through axis2 sources I ran across several
> System.setProperty() code fragments. I believe using System.setProperty() in
> a potentially shared web application belongs to the category "Just don't
> do". Do you think we can get rid of them?
> 
> Examples:
> WarBasedAxisConfigurator
>  System.setProperty("web.location", weblocation.getAbsolutePath());

Should be removable by moving to ServletContext.

> ListingAgent
>  System.setProperty(RUNNING_PORT, port);

Same here.

> Axis2Util
> - System.setProperty(OMAbstractFactory.SOAP11_FACTORY_NAME_PROPERTY,
> SOAP11Factory.class.getName());

Not removable .. I'm sure Ruchith will explain further; the problem is
with the way JAXP works (or something about how DOOM has to be plugged
in).

Sanjiva.


Mime
View raw message