Versions Compared

Key

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

...

The Bus is the backbone of the CXF architecture. It manages extensions and acts as an interceptor provider. The interceptors for the bus will be added to the respective inbound and outbound message and fault interceptor chains for all client and server endpoints created on the bus (in its context). By default, it contributes no interceptors to either of these interceptor chain types, but they can be added via configuration files or with Java code, as shown below.

...

The configurable properties of the bus are defined in the bus configuration schema http://cxf.apache.org/schemas/core.xsd.
Be sure to include the namespace - URI pair for this schema in the schemaLocation attribute of the <beans> element.

...

Although usually less convenient, interceptors can be added to the bus using Java code. Given an EndpointImpl object, the
bus can be accessed (and interceptors added) as follows:

...