Using a SOAP Connection to Publish Messages to Multiple Endpoints
This sample shows how to publish messages to multiple endpoints over HTTP and JMS.
TIBCO Enterprise Message Service must be running.
- Procedure
- In the samples directory, select and double-click tibco.bw.sample.binding.soap.http.HTTPJMSMultiEndpoint. For more information, see Accessing Samples.
- In Project Explorer expand the tibco.bw.sample.binding.soap.http.HTTPJMSMultiEndpoint project.
- Verify your TIBCO Enterprise Message Service connection. To verify:
- Fully expand the Resources directory.
- Double-click JMSConnectionResource.jmsConnResource.
- Click the Test Connection button to verify the connection.
- Fully expand the Processes directory and double-click TestService.bwp.
- Click .
- At the left hand tree of the 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.http.HTTPJMSMultiEndpoint.application.
- Click
Debug.
This runs the sample in Debug mode.
- Click the
Terminate
icon to stop the process.
The file provided for the OUTPUT_FILE property is written with the following content:
JMS : Output of getCityInfo : 61801 Urbana Illinois Urbana, Illinois, United States 40.11 88.207
JMS : Output of getCityDistance : Distance between two cities is : 4 miles. 61801 61820 Urbana Champaign Illinois Illinois Urbana, Illinois, United States Champaign, Illinois, United States
HTTP : Output of getCityInfo : 61801 Urbana Illinois Urbana, Illinois, United States 40.11 88.207
HTTP : Output of getCityDistance : Distance between two cities is : 4 miles. 61801 61820 Urbana Champaign Illinois Illinois Urbana, Illinois, United States Champaign, Illinois, United States