Get the sample MDB running with the WebSphere Embedded JMS Provider

The WebSphere Embedded JMS Provider software is a separate (optional) download from the Application Server 5.0 Trial software. Be sure to download and install it along with the Application Server.


Launch the Samples Gallery from the Windows Start menu.

Get the Publish and Subscribe Sample Working

The publish and subscribe sample consists of an application client that publishes a message on one of three topics and an MDB that is listening on a fourth, wildcard topic, that receives messages published on any of the first three. The MDB prints the message it receives to the standard output.

  1. Click on the "Message-driven beans" sample in navigation pane of the Samples Gallery.
  2. In the content pane, under “Publish and Subscribe”, choose “TechNotes”.
  3. The page that is displayed contains the information that is needed to setup the embedded JMS provider for this sample (described next).

  4. Start the WebSphere Administrative Console and navigate to <your server>->Resources->WebSphere JMS Provider.
  5. In the content pane, under "Additional Properties" choose WebSphere Topic Connection Factories.
  6. Click the New button.
  7. Enter the values given on the TechNotes page under "Defining properties for topic connection factory".
  8. Click the Apply button then click the OK button.
  9. Choose WebSphere JMS Provider in the content pane.
  10. In the content pane, under "Additional Properties" choose WebSphere Topic Destinations.
  11. Create four new topics with the property values given on the TechNotes page under "Defining properties for topics".
  12. In the WebSphere Administrative Console, navigate to <your server>->Servers->Application Servers.
  13. In the content pane, choose on the name of your server, then on Message Listener Service, then on Listener Ports, then on SamplePubSubListenerPort.
  14. The values for these properties on the TechNotes are incorrect. Verify that the following property values are set:

Initial State

Started

Connection Factory JNDI name

Sample/JMS/TCF

Destination JNDI name

Sample/JMS/listen

  1. Choose the "Message-driven beans" sample in the navigation pane of the Samples Gallery.
  2. In the content pane, under "Publish and Subscribe", click Configure and Run.
  3. Follow the instructions there for running the sample and confirming that the server received the message by examining the standard output log file.
    The standard output log file for your server is called SystemOut.log and can be found under install_root/Appserver/logs/<your server>.

Get the Point-to-Point Sample Working

The point-to-point sample consists of an application client that sends a message to a queue and an MDB that is configured to be triggered by messages on that queue. The MDB takes the message it receives and sends it to a second queue where the client receives it back and compares it to the original message it sent.

  1. Choose the "Message-driven beans" sample in the navigation pane of the Samples Gallery.
  2. In the content window, under "Point-to-Point", choose "TechNotes".
  3. The page that is displayed contains the information that is needed to setup the embedded JMS provider for this sample (described next).

  4. In the WebSphere Administrative Console, navigate to: <your server>->Resources->WebSphere JMS Provider.
  5. In the content pane, under "Additional Properties" choose WebSphere Queue Connection Factories.
  6. Click the New button.
  7. Enter the values given on the TechNotes page under "Defining properties for queue connection factory".
  8. Click the Apply button then click the OK button.
  9. Choose WebSphere JMS Provider in the content pane.
  10. In the content pane, under "Additional Properties" choose WebSphere Queue Destinations.
  11. Create two new queues with the property values given on the TechNotes page under "Defining properties for queues".
  12. In the WebSphere Administrative Console, navigate to <your server>->Servers->Application Servers.
  13. In the content pane, choose on the name of your server, then on Message Listener Service, then on Listener Ports, then on SamplePtoPListenerPort.
  14. The values for these properties on the TechNotes page are incorrect. Verify that the following property values are set:

Initial State

Started

Connection Factory JNDI name

Sample/JMS/QCF

Destination JNDI name

Sample/JMS/Q1

  1. Choose the "Message-driven beans" sample in the navigation pane of the Samples Gallery.
  2. In the content pane, under "Point-to-Point", click Configure and Run.
  3. Follow the instructions there for running the sample and confirming that the MDB received and sent back the message to the client.

TIBCO Enterprise Message Service™ Application Integration Guide
Software Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com