Different ways of accessing configuration parameters from a JAX-WS service

Posted by ecerulm on Stack Overflow See other posts from Stack Overflow or by ecerulm
Published on 2010-04-11T11:08:18Z Indexed on 2010/04/11 11:13 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

As far as I know I can access the web.xml <context-param>s by making my class implement ServletContextListener and use the ServletContext.getInitParam(String) to read them, but it´s cumbersome as only one instance of the class will receive the contextInitialized(ServletContextEvent sce) call, so I need to make the ServletContext an static member of the class.

What other ways exist of setting conf params at deployment time and what are the recommended ones?

© Stack Overflow or respective owner

Related posts about jax-ws

Related posts about jaxws