Enterprise Integration Patterns
Messaging Patterns
HOME PATTERNS RAMBLINGS ARTICLES TALKS DOWNLOAD BOOKS CONTACT
Messaging Patterns
Invalid Message ChannelInvalid Message ChannelMessaging Patterns » Messaging Channels

An application is using Messaging to receive Messages.

How can a messaging receiver gracefully handle receiving a message that makes no sense?

The receiver should move the improper message to an Invalid Message Channel, a special channel for messages that could not be processed by their receivers.

When designing a messaging system for applications to use, the administrator will need to define one or more Invalid Message Channels for the applications to use.

The Invalid Message Channel will not be used for normal, successful communication, so its being cluttered with improper messages will not cause a problem. An error handler that wants to diagnose improper messages can use a receiver on the invalid channel to detect messages as they become available.

... Read the entire pattern in the book Enterprise Integration Patterns

Related patterns:

Command Message, Correlation Identifier, Datatype Channel, Dead Letter Channel, Message, Message Channel, Message Sequence, Messaging, Service Activator, Messaging Gateway, JMS Request/Reply Example, .NET Request/Reply Example, Return Address


Creative Commons Attribution License

You can reuse the following elements under the Creative Commons Attribution license: pattern icon, pattern name, problem and solution statements (in bold), and the sketch. Other portions are protected by copyright.

Enterprise Integration Patterns book cover

Enterprise Integration Patterns
The classic, as relevant as ever. Over 90,000 copies sold.

Software Architect Elevator book cover

The Software Architect Elevator
Learn how architects can play a critical role in IT transformation by applying their technical, communication, and organizational skills.

Cloud Strategy book cover

Cloud Strategy
Fill the large gap between high-level goals and product details by understanding decision trade-offs.