The code Willem quoted was code I wrote, and it assumes that you are, as
Glen suggests, using regular Spring configuration. Otherwise, you have
no way to attach the Property code to CXF's bus as far as I know.
We could have a JIRA suggesting that CXF allow ${} references to system
properties in cxf.xml or cxf-servlet.xml, or even some scheme
(-Dcxf.config.property.file?) to allow others. As far as I know,
however, we haven't got that now.
On Wed, 2007-12-26 at 08:03 -0500, Glen Mazza wrote:
> Do a search on "staticResourceURL" in both of the files for what Willem
> is referring to. I have not done this before, however.
>
> Also, IIRC cxf.xml is primarily for bus (generic endpoint)
> configuration. I suspect you would want to use a regular Spring
> configuration file (either a more hardwired cxf-servlet.xml or a manual
> ApplicationContext file, see here[1][2]) for what you are doing. Making
> such a switch might make it easier for you to modify properties in the
> manner you desire below.
>
> Glen
>
> [1]
> http://cwiki.apache.org/confluence/display/CXF20DOC/Configuration#Configuration-Serverconfigurationfiles
>
> [2] http://cwiki.apache.org/confluence/display/CXF20DOC/Standalone+HTTP
> +Transport
>
>
> Am Mittwoch, den 26.12.2007, 12:05 +0100 schrieb Alex Shneyderman:
> > Could you explain how does it demo my case here?
> > I can not make sense of the XML you linked to.
> >
> >
> > On Dec 26, 2007 10:46 AM, Willem Jiang <[EMAIL PROTECTED]> wrote:
> > > Hi Alex ,
> > >
> > > Here is an example for your replace the ${} palceholders in the spring
> > > configuration file.
> > > Code :
> > > [1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
> > > Configuration file :
> > > [2]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/http_jetty/jetty-engine.xml
> > >
> > > Willem.
> > >
> > >
> > > Alex Shneyderman wrote:
> > > > I have a cxf.xml that contains a section like this :
> > > >
> > > > <sec:trustManagers>
> > > > <sec:keyStore type="${securitystore.type}"
> > > > password="${securitystore.password}"
> > > > file="${securitystore.file}" />
> > > > </sec:trustManagers>
> > > >
> > > > how do I substitute all those ${} placeholders ?
> > > >
> > > > I tried to use PropertyPlaceholderConfigurer that of course did not
> > > > work.
> > > >
> > > > Any ideas ?
> > > >
> > > >
> > >
> > >
> >
> >
> >
>