axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PARLEY,THUNDER (HP-MountainView,ex1)" <thun...@hp.com>
Subject Retrive <context-param> value?
Date Fri, 17 Oct 2003 17:36:03 GMT
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

Mime
View raw message