One way to do this is passing through web.xml. Check axis doc for how to obtain the webcontext. I don't know if there's a better way.
Can I pass parameters to a service (for initialization) using the WSDD file? If so how?
Here is my WSDD:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="GetAddrFromPO" style="message">
<parameter name="className" value="com.javector.GetAddrFromPO"/>
<parameter name="allowedMethods" value="onRequest" />
<wsdlFile>/GetAddrFromPO.wsdl</wsdlFile>
</service>
</deployment>
I'd like to pass initialization parameters to the instance of my class (com.javector.GetAddrFromPO) that is being deployed.
Thanks,
Mark