cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Roberts <>
Subject Re: Runtime CXF configuration WITHOUT using Spring
Date Fri, 12 Dec 2008 12:00:19 GMT
Steve Cohen wrote:
> But I don't completely understand yet.  Okay, let's say I make the small
> step of putting the PropertyPlaceHolderConfigurer into my cxf.xml
> file.   How does the PropertyPlaceHolderConfigurer know where to find my
> files?  We get into these chicken and egg problems. 

The location is set in the <bean> block that sets up the configurer
within cxf.xml:

   <bean id="propertyConfigurer"

       <property name="locations">
   </bean> means it looks for on your
classpath (i.e. in WEB-INF/classes).  You could put an absolute file URL
in there instead (file:///home/me/ if you want it to
load from a fixed location rather than from inside your webapp.

It's also worth noting that a PropertyPlaceholderConfigurer will use
Java system properties if it can't find the relevant entry in, i.e. if you have a ${webservice.username} placeholder
in your cxf.xml but no webservice.username=blah in
then it will look at the Java system property with the same name.  If
you *only* want to resolve system properties and not bother with at all then you could just use:

<bean id="propertyConfigurer"


Ian Roberts               | Department of Computer Science  | University of Sheffield, UK

View raw message