In this chapter, we are going to discuss the Java Messaging System (JMS) 2.0 API, which provides a full-featured implementation of Message-oriented middleware (MOM) in Java. If you are new to the message-oriented middleware concept, or have never used one of them before, don't worry; we are going to explain the basic concepts of messaging and JMS in the next sections.
You will learn how to use JMS 2.0 to send messages from any Java EE component to be consumed by Message-driven beans (MDB) asynchronously and concurrently. Note that the concept of messaging here is completely different from emails; emails are meant for communication between two or more persons, while messages in MOM are meant for communication between two or more software components. Emails contain some arbitrary information to be read by humans, while...