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