Point-to-Point Versus Publish/Subscribe
The point-to-point communication model is always used when a message is consumed only by a single consumer. For example, a system may inform a client of a processed order. This order can be received and processed by only one client. This model is referenced as a message queue (see Figure 24.2).
Figure 24.2. Message queue model.
In this model, a message producer sends a message to a given queue. Each queue is supplied with a unique name in the container’s naming service. The message then is consumed by the queue. Finally the queue delivers the message to a single registered client.
NOTE
One limitation ...
Get Borland® JBuilder™ Developer’s Guide 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.