Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are new to Spring or do not desire to learn more about it, don't worry, you won't have to. The only piece of Spring that you will see is the <beans> element outlined above. Simply create this file, place it on your classpath, and add the configuration for a component you wish to configure (see below).

...

What can I configure and how do I

...

do it?

If you are not happy with CXF's out-of-the box behaviour, want to enable specific functionality or fine tune a component's behaviour, you can in most cases do so without writing a single line of code and simply supplying a configuration file.
In some cases it is also possible to achieve the same by extending your wsdl contract: you can add CXF specific extension elements to the wsdl:port element that fine tune the behaviour of the specified transport. Or you can use WS-Policy to express the fact that your application uses WS-Addressing.
Spring configuration files are the most versatile way to achieve a specific goal, i.e. you can use it for everything that is configurable at all whereas WS-Policy assertions or wsdl extensors only cover a subset of this.
Provided there is a choice, your preference may depend on familiarity with Spring, company policies such as the universal adp

The following sections explain how you can configure the various components in CXF or how to enable their functionalityThe following sections tell you how to configure various components:

...