Prev | Current Page 427 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

This is illustrated in the following figure:
Chapter 15
[ 325 ]
Sample Use Case
The sample use case will have following components:
JMS client: This is a normal external JMS client, placing XML messages onto
the JMS consumer component configured within the ESB.
JMS consumer: This is a servicemix-jms listening on queue "A". Any
incoming messages to this queue will be routed to the next component in the
flow chain which is the Message Filter.
Message filter: The Message Filter is a servicemix-eip component. On
receiving the in messages, the filter will try to match the filter rule configured
at the filter-level with the message content. In the sample, we use the XPath
predicate to define the filter rule. In finding a match, the filter will forward
the message to the exchange-target which is a receiver component. Any
message which doesn't match will be dropped at the filter-level.
Receiver component: The receiver component just spits out whatever
message it receives into the console.
The following figure illustrates how the various components can be assembled in the
JBI bus for our sample use case:
??? ???
???
???
Enterprise Integration Patterns in ESB
[ 326 ]
Sample Code and Configuration
We configure the Message Filter in the servicemix.


Pages:
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439