The following examples are provided, as part of the WebSphere Samples Gallery,
to illustrate use of the message-driven beans support. When the Samples are
installed on your local machine, they are available to try out. Locate them
at
http://localhost:9080/WSsamples/ . (The default port
is 9080.) For more information about where to find the Samples Gallery, see
Samples Gallery.
- Point-to-point samples:
- "Tutorial: Creating JMS message sample"
This tutorial is designed to
help you develop and deploy a JMS message sample application that tests the
WebSphere Application Server message-driven beans support in a point-to-point
scenario. This sample illustrates how to develop and deploy an application
that comprises the following components:
- A Java/JMS program that writes a message to a queue.
- A message-driven bean that is invoked by a JMS listener when a message
arrives on a defined queue.
For more information about this sample, see the samples article
"Tutorial: Creating JMS message sample" that is installed with the Samples
option.
- "Sample: Message Listener (point-to-point)"
This sample is designed
to demonstrate the use and behavior of message-driven beans for a simple point-to-point
scenario. This sample uses the JMS message sample deployed in the sample above.
For
more information about this sample, see the samples article "Sample: Message
Listener (Point-to-Point)" that is installed with the Samples option.
- Publish/subscribe samples
- "Tutorial: Creating JMS message publish/subscribe sample"
This tutorial
is designed to help you develop and deploy a JMS message sample application
that tests the WebSphere Application Server message-driven beans support in
a publish/subscribe scenario. This sample illustrates how to develop and deploy
an application that comprises the following components:
- A client program that starts the message sequence by publishing a message
to a selected topic.
- A message-driven bean that is invoked by a JMS listener when the broker
passes a message to the listener from a topic to which it has subscribed.
For more information about this sample, see the samples article
"Tutorial: Creating JMS message publish/subscribe sample" that is installed
with the Samples option.
- "Sample: Message Listener (publish/subscribe)"
This sample is designed
to demonstrate the use and behavior of message-driven beans for a simple publish/subscribe
scenario. This sample uses the JMS message sample deployed in the publish/subscribe
sample above.
For more information about this sample, see the samples
article "Sample: Message Listener (publish/subscribe)" that is installed with
the Samples option.