Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As you’ve seen, JMS gives Java developers a standard API for interacting with message brokers and for sending and receiving messages. Furthermore, virtually every message broker implementation available supports JMS, so there’s no reason to learn a proprietary messaging API for every message broker you deal with.
But while JMS offers a universal interface to all message brokers, its convenience comes at a cost. Sending and receiving messages with JMS is not a simple matter of licking a stamp and placing it on an envelope. As you’ll see, JMS demands that you also fuel up the mail carrier’s truck.