Make your own free website on

ServiceDispatcher & DispatchContext

The ServiceDispatcher is responsible for dispatching services to the appropriate ServiceEngine.

The DispatchContext is the runtime dispatcher context, and is created by the ServiceDispatcher (LocalDispatcher) upon instantiation. The context contains references to:

  • each of the service definitions files

  • the classloader which should be used for invocation

  • the delegator

  • other user defined attributes.

The DispatchContext is passed on to each service when invoke and is used by the dispatcher to determine the service's model.