You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Adrian Corcoran <ad...@gmail.com> on 2008/09/26 16:25:08 UTC

Re: Accessing properties file content

look at PropertyPlaceholderConfigurer

http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-placeholderconfigurer


On Fri, Sep 26, 2008 at 3:15 PM, Rene Richard <re...@nrc.gc.ca>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?
>
> 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..
>
> Can someone provide a hint?
>
> R.
>
>