Chapter 9. Scenario: Asynchronous callback 283
The four queues shown in Figure 9-5 are required for the scenario. All queues
were defined to WBRK6_DEFAULT_QUEUE_MANAGER by using WebSphere
MQ Explorer.
Figure 9-5 WebSphere MQ queues required for the scenario
9.5 Business integration module
In this section, we demonstrate the implementation of a business integration
module deployed on WebSphere Process Server. The business process gets a
request from a client, sends the message to a queue (to which the message flow
listens), and sets a listener to queue (to which the message flow will reply). After
a reply arrives on the queue, the business process replies to its client.
9.5.1 Business integration module components
The business process is implemented in a business integration module called
OrderModule. Figure 9-6 shows the assembly diagram for this module.
Figure 9-6 Scenario assembly diagram
284 Using IBM WebSphere Message Broker as an ESB with WebSphere Process Server
The assembly diagram consists of the following components:
?
OrderBusinessProcessExport is the export component that the client uses to
access the business process. It has the OrderProcessInterface interface.
?
ReceiveInvoiceMQExport is the export component that receives reply
messages. It has the ReceiveInterface interface.
?
OrderBusinessProcess contains the business process implementation. It has
two interfaces, ReceiveInterface and OrderProcessInterface.
?
SendOrderMQImport is the import component that sends request messages
to a service via WebSphere Message Broker. It has the SendInterface
interface.
The sequence diagram in Figure 9-7 summarizes the interaction between the
client, SCA module, queues and WebSphere Message Broker flow.
Figure 9-7 Scenario sequence diagram
Asynchronous and synchronous calls: The asynchronous callback is
carried out inside the business process, while the client to the process makes
a synchronous call.
Further processing
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.43.17