Hence the request is echoed
back to the wiretap and then to the consumer component of the wiretap
(HTTP connector).
??? ???
???
???
Chapter 15
[ 321 ]
Trace component: The Trace component takes part in an In-Only MEP in the
flow and will print the message in the console.
The following figure illustrates how the various components can be assembled in the
JBI bus for our sample use case:
Sample Code and Configuration
We configure the wiretap in the servicemix.xml file, along with other components
described above. This file is reproduced in the following code:
xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:test="http://xslt.servicemix.apache.binildas.com"
xmlns:eip="http://servicemix.apache.org/eip/1.0"
xmlns:jms="http://servicemix.apache.org/jms/1.0">
.
???
Enterprise Integration Patterns in ESB
[ 322 ]
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435