Hi Jess,

you can put the variables in the copnfigureation file of your application 
server.
I use tomcat (and for that server.xml):

<Context path="/axis" docBase="axis" debug="1" privileged="false" 
reloadable="true">
<Environment name="foo" value="bar" type="java.lang.String" override="false"/>
</Context>

In your code you can use:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:/comp/env");
String retVal = (DataSource) envCtx.lookup("foo");

The advantage is, that all configuration can be done by deploying the web 
service.
Juergen

>Is there any way in the current Axis system (nightly builds) to pass
>configuration parameters to a Web Service?
>
>I need to pass some filesystem path information which would normally be
>passed using init-params to servlets, but I'm unsure how to do a similar
>thing with Axis.

-----------------------------
Juergen Kaatz
Entwickler / Developer
WWE e-commerce IT GmbH
Eiffestrasse 462
20537 Hamburg
URL: http://www.e-commerceit.de/
URL: http://www.iets.de/ (Internet Export Trading System)
Tel: +49-40-2530659-32
Fax: +49-40-2530659-50
Tel. +49-40-2530659-0 (Zentrale)
E-Mail : [EMAIL PROTECTED]

Reply via email to