Adding Interceptors Using Configuration

The easiest way to attach interceptors to an endpoint is using the configuration file. Each interceptor to be attached to an endpoint is configured using a standard Spring bean. The interceptor's bean can then be added to the proper interceptor chain using FUSE Services Framework configuration elements.

Each runtime component that has an associated interceptor chain is configurable using specialized Spring elements. Each of the component's elements have a standard set of children for specifying their interceptor chains. There is one child for each interceptor chain associated with the component. The children list the beans for the interceptors to be added to the chain.

Table 5.1, “Interceptor Chain Configuration Elements” describes the four configuration elements for attaching interceptors to a runtime component.


All of the interceptor chain configuration elements take a list child element. The list element has one child for each of the interceptors being attached to the chain. Interceptors can be specified using either a bean element directly configuring the interceptor or a ref element that refers to a bean element that configures the interceptor.

Example 5.1, “Attaching Interceptors to the Bus” shows configuration for attaching interceptors to a bus' inbound interceptor chain.


Example 5.2, “Attaching Interceptors to a JAX-WS Service Provider” shows configuration for attaching an interceptor to a JAX-WS service's outbound interceptor chain.


For more information about configuring endpoints using the Spring configuration see Configuring and Deploying FUSE™ Services Framework Endpoints.