Skip to main content

Defining Bad Message Handlers

Defining Bad Message Handlers

A routing process has the setting Bad Message Handler. The purpose of this setting is to indicate the business host to which the process should send messages that are found to be bad, according to the Bad Message Handler of the business process. To define a bad message handler, first decide how you want to handle the bad message. Typically you create a business operation. This business operation could do either or both the following, for example:

  • (Via a file adapter) Write the contents of the message to a file.

  • (Depending on a configuration setting) Trigger an alert whenever it encounters a bad message.

Note that the business process sends the bad message to this business host instead of its usual target for validated messages.

If a message is bad and if the Bad Message Handler setting is not specified, the routing process simply stops the validation sequence and does not send the message.

FeedbackOpens in a new tab