Prev | Current Page 397 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

All the samples are arranged in subfolders under ch15\. Make sure
that you edit examples.PROPERTIES and change the paths there to match your
development environment to build the samples.
Content-based Router
A content-based router consumes a message from one message channel. Based on a
set of conditions on the headers or the body content of the message, it republishes
the message on to a different message channel.
Notation
??? ??? ??? ??? ??? ??? ??? ??? ???
Chapter 15
[ 295 ]
Explanation
The message router inspects the contents of the message and routes the message to
multiple channels. While doing so, the router will not alter the message contents.
While inspecting, the router can look into a field in the message body or the message
header. Usually, a condition or a rule is attached to the router which will try a match
with the field in the message. Hence this rule matching hook is to be designed as
extensible and is the target of constant maintenance when we want to add more rules
or when we want to plug-in more channels matching the rules.
Illustrative Design
Let us consider the Acme Company providing the web interface to end customers
to place orders for buying the gadgets online.


Pages:
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409