If you're using a handler, you can use the method getOption() which is inherited from BasicHandler... this gets the parameters which were set in server-config.wsdd (and i'm not sure but if you're on the client side I would think it would get the ones from client-config.wsdd).

If you're talking about parameters for an actual service, why not just store them in a file??

stephen

PARLEY,THUNDER (HP-MountainView,ex1) wrote:
Hi List,

What is the best way for me to get a <context-param> value in the web.xml
while my service is processing a request? Is this even possible r is there a
better way to establish configuration parameters for my service?

I have tried this already:

MessageContext context = MessageContext.getCurrentContext();
HttpServlet req = (HttpServlet)
context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
String dummy_config_param = req.getInitParameter("dummy_param");

Thanks,

Thunder






Reply via email to