About the Simplified Database Routing sample

The Simplified Database Routing sample is based on the scenario of an employee management processing system. The sample demonstrates how to use some of the features provided by IBM Integration Bus.

The Simplified Database Routing sample demonstrates how you can design applications that process self-defining XML messages. XML messages are self-defining because each piece of data is prefixed by a tag name or an attribute name. An XML message definition is in the message itself and is not held anywhere else. Therefore, you can run a message flow by using an XML message without the aid of an external message set.

In this sample the message format is transformed by using the DatabaseRetrieve node. By using the DatabaseRetrieve node, you can use either ESQL or XPath languages to specify the message format of the output message.

The Simplified Database Routing sample performs the following actions:

The following sections describe the Simplified Database Routing sample in more detail:

The message flow

The Simplified Database Routing sample includes a message flow called SimplifiedDBRouting. The message flow dynamically routes messages and retrieves information about an employee, based on the contents of the test messages. To read more about the message flow, see About the Simplified Database Routing message flow. For more information, see Message flows overview in the IBM Integration Bus documentation.

The messages

The Simplified Database Routing sample processes self-defining, or generic, XML messages. A self-defining XML message carries the information about its content and structure within the message in the form of a document that adheres to the XML specification. A definition of the message is not held anywhere else. When the message flow receives the message, the message is parsed by using the XMLNSC parser according to the XML definitions contained within the message itself.

Four self-defining XML input messages are supplied. You can use these messages to observe how the different content of the messages changes and how the messages are routed in the message flow. The input messages provided have the following content:

The database

The Simplified Database Routing sample uses a database called SROUTEDB, which contains two database tables called DEPARTMENT and EMPLOYEE. The message flow in the sample directly accesses SROUTEDB. For more information about the database in this sample, see About the SROUTEDB database.

The WebSphere MQ queues

The Simplified Database Routing sample message flow interacts with WebSphere MQ local queues. The queues are defined on the WebSphere MQ queue manager that hosts the integration node on which the message flow runs. For more information about the WebSphere MQ queues in this sample, see About the WebSphere MQ queues.

Back to sample home