Listeners
You can use the node in the Messaging configuration to add listeners to your messaging process. A listener is a piece of code that responds to a specified event in the messaging process. For example, the messaging service includes a default listener that sends an acknowledgment when a message is imported.
Listeners are based on the IMessagingListener interface, which supports these events:
BeforeMessageExportedAfterMessageExportedMessageExportFailureBeforeMessageQueueExportedAfterMessageQueueExportedMessageQueueExportFailureBeforeMessageImportedAfterMessageImportedMessageImportFailure