188 Enabling SOA Using WebSphere Messaging
6.3 XML-to-XML mapping using a mediation flow
This section shows how to build a mediation flow that transforms a message in
one XML format to another XML format. WebSphere ESB includes a mediation
primitive called the XSLT mediation primitive that can be placed in a mediation
flow to provide this function.
In this example, two queue destinations are defined in the service integration
bus. Messages enter the flow through the AIRLINE queue destination, are
mediated, and leave the flow through the ORDER queue destination.
Applications access these queues using the JNDI names.
The Export is bound to JMS and specifies jms/AIRLINE as the destination to
receive messages from. The Import is also bound to JMS and specifies
jms/ORDER as the destination to send messages to.
Configuration details are shown in Figure 6-4.
Figure 6-4 XML-to-XML mapping using the XSLT primitive
6.3.1 Mediation overview
Figure 6-5 on page 189 shows the mediation module contents we are going to
build.
Bus
Mediation
Export
Import
ORDER
(queue)
AIRLINE
(queue)
XSLT primitive
XML XML
WebSphere Application Server
jms/ORDER
Airline app
Travel Bureau
app
jms/AIRLINE

Get Enabling SOA Using WebSphere Messaging now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.