Creating custom itinerary services
In this section, we will see how to create our own custom itinerary services, both on their messaging and orchestration flavors.
Custom messaging itinerary service
As we mentioned before, the messaging services are implemented as specific classes that will be invoked by the ESB Dispatcher pipeline components.
In order to implement one of those, we need to create a class that implements the IMessagingService
interface. This interface defines two properties (Name
and SupportsDisassemble
) and two methods (Execute
and ShouldAdvanceStep
) that have to be implemented:
Name
: It is the name of the service that will be used to reference the service in the itinerary. It will be the one that will identify the service once registered in the ESB configuration file.SupportsDisassemble
: It specifies if the component supports disassemble and the execution of multiple resolvers.Execute
: It is the method where the processing of the message will take place.ShouldAdvanceStep
: It...