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.

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.