Versions Compared

Key

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

...

What can I configure and how do I do it?

If you are not happy with want to change CXF's out-of-the box default 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 by supplying a Spring configuration file.
In some cases it is also possible to achieve the same end by extending your wsdl contract: you can add CXF specific extension elements to the wsdl:port element and in that way fine tune the behaviour of the specified transport. Or you can use WS-Policy to express the fact that your application uses WS-Addressing.
Using Spring configuration files are however is 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 adpfrom enabling functionality via simple constructs called features, setting properties of runtime components by referring to them as Spring bean elements, and modifying the actual composition of the runtime (change the way the runtime is wired up).

The following sections explain how you can enable and/or configure the various components in CXF or how to enable their functionality:

Embedding CXF inside Spring

...