Steve Cohen wrote:
Is it possible to have a cxf.xml file which has two sets of
authentication parameters, each one selectable on the basis of which
instance of the Web Service is being communicated with?
My goal here is to have one application, deployable on both our test
and production tiers that determines the service url and
authentication parameters based on the environment it runs in (say by
properties files).
If so, what would such cxf.xml file look like?
After having done some of my own investigation I find the following here
: http://cwiki.apache.org/CXF20DOC/configuration.html
"CXF can discover XML configuration files which you have written. For
both web service clients and servers, the default location that CXF will
look for a configuration for is "/cxf.xml" on the class path. If you
wish to override this location, you can specify a command line property:
-Dcxf.config.file=some_other_config.xml. To use a url as the
configuration location, specify as follows:
-Dcxf.config.file.url=config_file_url."
I want to have TWO CXF configuration files on my classpath, neither
called cxf.xml, that is, both will be in the WAR file. Is there a way,
using the syntax above to describe classpath resources, as opposed to
files or URLs. I guess another way of asking this is: is it possible to
describe classpath resources with URL syntax? But in any case, how can
I do this?