Using JMS Destination Bridges

This sample illustrates the support of JMS destination bridges in TIBCO ActiveMatrix BusinessWorks™.

Before you begin

  • TIBCO Enterprise Message Service must be running.
  • In TIBCO EMS administration, create queue.sample and topic.sample before executing the sample.
  • In TIBCO EMS administration, create the GenericConnectionFactory factory before executing the sample.
  • A bridge must be created between Topic to Queue, that is, between topic.sample and queue.sample.
  • Create a queue replyQueue.

    Procedure
  1. In the samples directory, select binding > soap > jms > TopicQueueBridge and double-click tibco.bw.sample.binding.soap.jms.TopicQueueBridge. For more information, see Accessing Samples.
  2. In Project Explorer expand the tibco.bw.sample.binding.soap.jms.TopicQueueBridge project.
  3. Verify your TIBCO Enterprise Message Service connection.
    1. Fully expand the Resources directory.
    2. Double-click JMSConnectionResource.jmsConnResource.
    3. In the Basic Configuration dialog, click the Test Connection button to verify the connection.
  4. Fully expand the Processes directory and double-click client.bwp.
  5. Click Run > Debug Configurations.
  6. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  7. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco.bw.sample.binding.soap.jms.TopicQueueBridge.application.
  8. Click Debug.
    This runs the sample in Debug mode.
  9. Click the Terminate icon to stop the process.
Result

The Console shows the following response:

Request Received.

Response received with value :0.5

Understanding the Configuration

The process sends a message to the Topic and is receives from the Queue using SOAP over JMS.

This process runs as follows:

  • Client sends a request.
  • WS Service receives the request and calls the Service process. The Service process processes the data and returns the response.