Using JMS Destination Bridges

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

Prerequisites

  • TIBCO Enterprise Message Service must be running.
  • In TIBCO EMS administration, create queue.sample and topic.sample before executing the sample.
  • A bridge must be created between Topic to Queue, that is, between topic.sample and queue.sample.
  • Create 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. Set the default ApplicationProfile to match the OS you are running on. For more information, see Setting the Default Application Profile.
  4. 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.
  5. Fully expand the Processes directory and double-click client.bwp.
  6. Click Run > Debug Configurations.
  7. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  8. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to tibco.bw.sample.binding.soap.jms.TopicQueueBridge.application.
  9. Click Debug.
    This runs the sample in Debug mode.
  10. Click the Terminate icon to stop the process.

Result

The Console shows the following response:

Request Received.

Response received with value :0.5

The TopicQueueBridge.log output file at C:\tmp\TopicQueueBridge location shows that the message has been sent to the Topic and received from the Queue using SOAP over JMS.

Understanding the Configuration

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

This process executes 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.