Datatype Channel

Pattern Catalog

Previous Previous   Next Next

Site HomePatterns HomeTable of Contents

An application is using Messaging to transfer different types of data, such as different types of documents.

How can the application send a data item such that the receiver will know how to process it?

Use a separate Datatype Channel for each data type, so that all data on a particular channel is of the same type.

By using a separate Datatype Channel for each type of data, all of the messages on a given channel will contain the same type of data. The sender, knowing what type the data is, will need to select the appropriate channel to send it on. The receiver, knowing what channel the data was received on, will know what its type is.

...

Related patterns: Canonical Data Model, Command Message, Format Indicator, Message Channel, Message Dispatcher, Selective Consumer, Messaging


Enterprise Integration Patterns Find the full description of this pattern in:
Enterprise Integration Patterns
Gregor Hohpe and Bobby Woolf
ISBN 0321200683
650 pages
Addison-Wesley
Creative Commons License Parts of this page are available under the Creative Commons Attribution license. You can reuse the pattern icon, the pattern name, the problem and solution statements (in bold), and the sketch under this license. Other portions of the text, such as text chapters or the full pattern text, are protected by copyright.

HomePatternsTable of ContentsPrevious Previous   Next Next