O'Reilly logo

J2EE™ Tutorial, The by Beth Stearns, Monica Pawlan, Eric Jendrock, Kim Haase, Dale Green, Stephanie Bodoff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example Application Overview

This application has the following components:

  • SimpleMessageClient: A J2EE application client that sends several messages to a queue.

  • SimpleMessageEJB: A message-driven bean that asynchronously receives and processes the messages that are sent to the queue.

Figure 7-1 illustrates the structure of this application. The application client sends messages to the queue, which was created administratively using the j2eeadmin command. The JMS provider (in this, case the J2EE server) delivers the messages to the instances of the message-driven bean, which then processes the messages.

Figure 7-1. The SimpleMessageApp Application

The source code for this application is in the j2eetutorial/examples/src/ejb/simplemessage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required