Now to test the
sample, first, bring ServiceMix up by executing the following commands:
cd ch15\04_StaticRecipientList
%SERVICEMIX_HOME%\bin\servicemix servicemix.xml
Now in a different command prompt execute ant run.
cd ch15\04_StaticRecipientList
ant run
Chapter 15
[ 319 ]
The JMS client program console will print out the messages it sends to the ESB as
shown in the following screenshot:
At the same time, if you observe the ESB console, you can see the message is
delivered to all the three recipients in the recipient list.
Wiretap
The wiretap is a kind of simple recipient list which, when inserted into the message
channel, will publish each incoming message into the main channel as well as into a
secondary channel.
Notation
Enterprise Integration Patterns in ESB
[ 320 ]
Explanation
The wiretap is a static recipient list, with only two recipients in the list. When
inserted into the main channel, it publishes the input message into the main channel
as well as the secondary channel configured in the wiretap. The wiretap will not
modify the message contents in any manner.
Pages:
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433