On Friday 26 September 2008 10:15:51 am Rene Richard wrote:
> Hello,
>
>
> I would like to read a properties file and get configuration information to
> feed into my web service (all of this inside a tomcat container).
>
> I have a hello world web service and I would like to read a properties file
> and respond with something inside it. How do I get the servlet context from
> inside a CXF web service?

In your service, you can have a 
@Resource
WebServiceContext ctx;
thing and for each invoke, you can get the Servlet context out of it.


> I can also configure this as a Spring bean with properties set in the
> configuration file. I don't know how to get the spring context either..

If it's in spring config, just let spring inject it into your bean.

Dan



> Can someone provide a hint?
>
> R.



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to