Example: Promoting properties

This example shows you how to use the properties promotion capability of the mediation flow editor.

A financial services company provides an interactive Web-based stock market service to its customers. The company uses two different stock quote services to receive quotes; a delayed service and a realtime service. The following diagram shows the response to the stock quote request that is returned from each service. Each response message is transformed and then logged before it is returned to the client.


Example request flow

The Promoted properties view of the LogMessage primitive shows that the Root property is promoted and its value is /body:


Prompted property Root
After the service has been running for a while, the administrator notices that there are problems with responses from the realtime service. To get more information, she decides to log the entire message rather than just the message body by changing the value of the alias LogLevel to / in the admin console. The administrator saves the changed configuration, and the returned responses are now logged at the new level without her having need to restart the mediation module.

When a promoted property's value is changed at runtime, the timeliness of the update may vary. In a cell environment, the change needs to be synchronized across all nodes. .

Related concepts
Promoted properties
Choosing alias names for promoted properties
Tips for deciding which properties to promote

Related information

Promoting a property in the mediation flow editor

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.