+

Search Tips   |   Advanced Search

Mediation context information

Mediation context information is used to ensure that messages are processed correctly by parameterizing the mediation handlers, providing configuration information at runtime. For example, the name of a file to write to.

The mediation context information comprises property values passed to each mediation at run time. The property values, in conjunction with the information in the message header, contribute to the way in which a message is mediated.

The context properties (name, value and type) are specified for both mediations and bus destinations using the administrative console. The mediation uses both sets of context properties, but those for a bus destination takes precedence over the context properties for a mediation. For example, if a property with the same name is configured for a destination and a mediation, the property on the destination takes precedence.

When a message is mediated and a mediation handler is invoked, the information specified in the context information is accessed by the getProperty() method and becomes an entry in the MessageContext information for the mediation handler. The documentation for each mediation handler describes the information it expects to find in the MessageContext property.

When a mediation handler is invoked in the context of a mediation handler list, the message context might be passed from one handler to the next in sequence.

  • Work with the message context
  • Configure mediation context properties