Download
FAQ History |
API
Search Feedback |
J2EE Examples Using the JMS API
This chapter provides examples that show how to use the JMS API within a J2EE application in the following ways:
- Using a session bean to send messages that are consumed by a message-driven bean using a message selector and a durable subscription
- Using an application client to send messages that are consumed by two message-driven beans; the information from them is stored in an entity bean
- Using an application client to send messages that are consumed by a message-driven bean on a remote server
- Using an application client to send messages that are consumed by message-driven beans on two different servers
The examples are in the following directory:
To build and run the examples, you will do the following:
Each example has a
build.xml
file that refers to atargets.xml
file and abuild.properties
file in the following directory:The following directory contains previously built versions of each application:
If you run into difficulty at any time, you can open the appropriate EAR file in
deploytool
and compare that file to your own version.See Chapter 28 for a simpler example of a J2EE application that uses the JMS API.
Download
FAQ History |
API
Search Feedback |
All of the material in The J2EE(TM) 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.