axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinath Perera <hemap...@gmail.com>
Subject Re: [axis2] configuration file
Date Mon, 22 Aug 2005 18:30:14 GMT
this is good one to go to axis2 FAQ I guss

On 8/21/05, Gordon Gekko <diegs@tiscalinet.it> wrote:
> Sorry!
> 
> It was a trivial matter.  I didn't notice the method getRealPath(String
> path) of org.apache.axis2.context.ConfigurationContext.
> 
> Diego
> 
> 
> Gordon Gekko wrote:
> 
> > Hi!
> >
> > My web service is basically an interface to a database.  I don't want to
> > hard code the jdbc configuration information so I was thinking about
> > having a configuration file in the axis directory tree maybe in the
> > WEB-INF directory.  I don't want to specify an absolute path in the code
> > because if I deploy the same web service in another system maybe it
> > won't work.  I would like to do something like the following that
> > doesn't work because because the user.dir property isn't axis2 or tomcat
> > home.
> >
> > DocumentBuilderFactory docBuilderFactory =
> > DocumentBuilderFactory.newInstance();
> > DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
> > Document doc = docBuilder.parse(new File("configuration.xml"));
> >
> > Thanks!
> >
> > Diego
> >
>

Mime
View raw message