- Introduction to Messaging
- Components of the JMS Architecture
- The Two JMS Message Models
- The JMS Interfaces
- The Details of a JMS Message
- Message Selection and Filtering
- Using the JMS Point-to-Point Model
- Using the JMS Publish/Subscribe Model
- Synchronous Versus Asynchronous Messaging
- Message Persistence
- Using Transactions with JMS
- Using JMS with Enterprise JavaBeans
- Troubleshooting
Using JMS with Enterprise JavaBeans
Prior to the EJB 2.0 Specification, the preferred method of handling JMS consumers was to use the methods discussed throughout this chapter. With the new 2.0 Specification, a new enterprise bean has been introduced that will handle this task much more efficiently than the consumers in this chapter does. This is because the container now will handle such things as instance pooling to concurrently handle multiple messages at the same time. You also will not need to start an external Java program to handle the message consumption as was shown in this chapter. This and much more will be covered in the next chapter.