Static Routing Slip
A static routing slip can route a message coming in an In-Out MEP through a series
of configured target services.
Enterprise Integration Patterns in ESB
[ 340 ]
Notation
Explanation
You might be aware of the servlet filters, which is a kind of pipe and filter
configuration to do processing at the presentation tier. Sometimes we may need to
do similar processing, through a series of process blocks. The exact processing blocks
through which the message has to be routed can be dynamic based on the type of
message. In a static routing slip, these processing blocks or target services are fixed.
The ServiceMix routing slip uses In-Out MEPs and errors or faults sent by the targets
are reported back to the consumer. In case of errors the routing process is interrupted.
Illustrative Design
When the Acme customer drops items into the shopping cart, we may also need to
extend any offers or discounts associated with the selected item. This has to be done
after the initial inventory check. We can attach a routing slip to each message so
that the messages are routed in series through the inventory module and the offer
module.
Pages:
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456