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
GenericConnectionFactoryfactory 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
- In the samples directory, select and double-click tibco.bw.sample.binding.soap.jms.TopicQueueBridge. For more information, see Accessing Samples.
- In Project Explorer expand the tibco.bw.sample.binding.soap.jms.TopicQueueBridge project.
- Verify your TIBCO Enterprise Message Service connection.
- Fully expand the Resources directory.
- Double-click JMSConnectionResource.jmsConnResource.
- In the Basic Configuration dialog, click the Test Connection button to verify the connection.
- Fully expand the Processes directory and double-click client.bwp.
- Click .
- At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- 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.
- Click
Debug.
This runs the sample in Debug mode.
- 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.