Using an MDB in a point-to-point application

The first five recipes are point-to-point applications. They represent a simple type of point-to-point application as there is only one producer of information, a servlet, and only a single consumer, the MDB. In this recipe, we will further develop this type of application by reusing the ObjectMessageApplication developed in the previous recipe.

Getting ready

Make sure you are familiar with the ObjectMessageApplication. We will add a minimal amount of code to illustrate variations of the point-to-point application architecture. This type of application is sometimes referred to as a producer-consumer application. One or more producers will generate messages which are placed in a queue. One or more consumers ...

Get EJB 3.1 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.