On Friday 11 March 2011 10:34:43 AM Morris Jr, David P wrote:
> Can hardcoded values in the configuration files for CXF be removed and read
> out of properties files? Basically remove the hardcoding for the web
> services endpoints. Is there an 'expression language'?
Much of it CAN be. They are Spring files and thus the Spring bean of :
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
can be used to have it replace some properties. We use it in our test cases
to inject the port numbers:
<jaxws:endpoint id="mtom-jaxws-service" implementor="#mtomImpl"
address="http://localhost:${testutil.ports.MtomTest}/jaxWsMtom">
</jaxws:endpoint>
With the config above, it would grab system properties. However, if you
search the net, there is a way to specify the properties file to read from.
I'm just not sure how..
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com