Tom,
 
I use the parameter element in the WSDD deployment for the service such as:
 
<parameter name="myparam" value="somevalue"/>
 
 
In my service code, I use the following:
 
MessageContext msgCxt = MessageContext.getCurrentContext();

SOAPService soapSvc = msgCxt.getService();

soapSvc.getOption("myparam");

 

 

 -----Original Message-----
From: Tom Schuring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 06, 2002 3:07 PM
To: [EMAIL PROTECTED]
Subject: <context-param>

hello,
 
to access the :
 
    <context-param>
        <param-name>configFileLocation</param-name>
        <param-value>C:\myapp\config\config.xml</param-value>
    </context-param>
 
section in the web.xml file in a servlet i use:
 
application.getInitParameter("configFileLocation")
 
to get the parameter value "C:\myapp\config\config.xml"
 
is there a similar way to access the <context-param/> section from within a axis service ?
 
best regards,
tom

Reply via email to