Hi Alex ,
Maybe this code can help your out.

      applicationContext = new GenericApplicationContext();
       readBeans(new ClassPathResource("cxf.xml"));
       readBeans(new ClassPathResource("META-INF/cxf/cxf.xml"));
       readBeans(new ClassPathResource("META-INF/cxf/cxf-extension-soap.xml"));
       readBeans(new ClassPathResource("META-INF/cxf/cxf-extension-http.xml"));
       readBeans(new 
ClassPathResource("META-INF/cxf/cxf-extension-http-jetty.xml"));
       readBeans(new ClassPathResource("jetty-engine.xml", getClass()));
       if (includeService) {
           readBeans(new ClassPathResource("server-lifecycle-beans.xml", 
getClass()));
       }
/**** bring in some property values from a Properties file ***/
       PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
       Properties properties = new Properties();
       properties.setProperty("staticResourceURL", getStaticResourceURL());
       cfg.setProperties(properties);
       // now actually do the replacement
cfg.postProcessBeanFactory(applicationContext.getBeanFactory()); applicationContext.refresh();

Willem


Alex Shneyderman wrote:
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 ?






Reply via email to