LibraryToggle FramesPrintFeedback

When a Fuse Services Framework developed consumer invokes a remote service the following message processing sequence is started:

When a Fuse Services Framework developed service provider receives a request from a consumer, a similar process takes place:

Developing an interceptor, regardless of its functionality, always follows the same basic procedure:

  1. Determine which abstract interceptor class to extend.

    Fuse Services Framework provides a number of abstract interceptors to make it easier to develop custom interceptors.

  2. Determine the phase in which the interceptor will run.

    Interceptors require certain parts of a message to be available and require the data to be in a certain format. The contents of the message and the format of the data is partially determined by an interceptor's phase.

  3. Determine if there are any other interceptors that must be executed either before or after the interceptor.

    In general, the ordering of interceptors within a phase is not important. However, in certain situations it may be important to ensure that an interceptor is executed before, or after, other interceptors in the same phase.

  4. Implement the interceptor's message processing logic.

  5. Implement the interceptor's fault processing logic.

    If an error occurs in the active interceptor chain after the interceptor has executed, its fault processing logic is invoked.

  6. Attach the interceptor to one of the endpoint's interceptor chains.

Comments powered by Disqus