> 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”.

> The page that is displayed contains the information that is needed to setup the embedded JMS provider for this sample (described next).

> 3. | Start the WebSphere Administrative Console and navigate to <your server>->Resources > WebSphere JMS Provider.

> 4. | In the content pane, under "Additional Properties" choose WebSphere Topic Connection Factories.

> 5. | Click the New button.

> 6. | Enter the values given on the TechNotes page under "Defining properties for topic connection factory".

> 7. | Click the Apply button then click the OK button.

> 8. | Choose WebSphere JMS Provider in the content pane.

> 9. | In the content pane, under "Additional Properties" choose WebSphere Topic Destinations.

> 10. | Create four new topics with the property values given on the TechNotes page under "Defining properties for topics".

> 11. | In the WebSphere Administrative Console, navigate to <your server>->Servers > Application Servers.

> 12. | In the content pane, choose on the name of your server, then on Message Listener Service, then on Listener Ports, then on SamplePubSubListenerPort.

> 13. | 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

> 14. | Choose the "Message-driven beans" sample in the navigation pane of the Samples Gallery.

> 15. | In the content pane, under "Publish and Subscribe", click Configure and Run.

> 16. | 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".

> The page that is displayed contains the information that is needed to setup the embedded JMS provider for this sample (described next).

> 3. | In the WebSphere Administrative Console, navigate to: <your server>->Resources > WebSphere JMS Provider.

> 4. | In the content pane, under "Additional Properties" choose WebSphere Queue Connection Factories.

> 5. | Click the New button.

> 6. | Enter the values given on the TechNotes page under "Defining properties for queue connection factory".

> 7. | Click the Apply button then click the OK button.

> 8. | Choose WebSphere JMS Provider in the content pane.

> 9. | In the content pane, under "Additional Properties" choose WebSphere Queue Destinations.

> 10. | Create two new queues with the property values given on the TechNotes page under "Defining properties for queues".

> 11. | In the WebSphere Administrative Console, navigate to <your server>->Servers > Application Servers.

> 12. | In the content pane, choose on the name of your server, then on Message Listener Service, then on Listener Ports, then on SamplePtoPListenerPort.

> 13. | 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

> 14. | Choose the "Message-driven beans" sample in the navigation pane of the Samples Gallery.

> 15. | In the content pane, under "Point-to-Point", click Configure and Run.

> 16. | Follow the instructions there for running the sample and confirming that the MDB received and sent back the message to the client.

Copyright © TIBCO Software Inc. All Rights Reserved.