O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Types of Messaging

There are two main ways to send messages: point-to-point and publish-subscribe. A point-to-point messaging application has a single producer (usually) and a single consumer. The producer produces messages while the consumer consumes them. Figure 19.2 illustrates a point-to-point messaging model.

Figure 19.2. A point-to-point messaging system involves a single producer and a single consumer.

A point-to-point system can actually have multiple producers,but usually only a single con sumer. Think of a print server, for instance. Any machine on the network can send a print job to a particular print server. Of course, you can have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required