
68 Enabling SOA Using WebSphere Messaging
Table 4-1 Point-to-point versus publish-subscribe
4.3 Messaging styles
Messaging can be applied in either an asynchronous or in a
pseudo-synchronous way. The distinction is made based on the whether the
same consumer thread that issued a request needs to handle a possible reply.
4.3.1 Asynchronous communication
Using asynchronous communication, the consumer thread follows a
fire-and-forget approach. After sending a request the thread is not blocked even
if a reply is expected.
Figure 4-4 shows the behavior of the consumer and provider in case of an
asynchronous communication style.
Figure 4-4 Thread behavior ...