|
Home TOC Index |
|
Search
Feedback |
Example Application Overview
This application has the following components:
SimpleMessageClient: A J2EEapplication 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 16 illustrates the structure of this application. The application client sends messages to the queue, which was created administratively using the
j2eeadmincommand. 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
SimpleMessageAppApplicationThe source code for this application is in the
j2eetutorial/examples/src/ejb/simplemessagedirectory. To compile the code, go to thej2eetutorial/examplesdirectory and typeantsimplemessage. A sampleSimpleMessageApp.earfile is in the j2eetutorial/examples/earsdirectory.
|
Home TOC Index |
|
Search
Feedback |