Testing in TIBCO Business Studio™ Container Edition

Prerequisites

  • Your computer must be connected to the Internet.
  • The Hystrix Dashboard must be set up locally in your environment.

Procedure

  1. From the File Explorer, navigate to the samples directory and select samples > Container > cloudfoundry > core > Hystrix and double-click tibco.bwce.sample.core.Hystrix.
  2. From the Project Explorer expand the tibco.bwce.sample.core.Hystrix project.
  3. Expand the Processes folder and double-click HTTP_Request_Response_Example.bwp.
  4. Click Run > Debug Configurations.
  5. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  6. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to tibco.bwce.sample.core.Hystrix.application.
  7. Click Debug.
    This will run the sample in the debug mode.
  8. Open the request_news.html file found in samples > Container > cloudfoundry > core > Hystrix > Basic folder.
  9. Click the Get News from Wiki! button to request headlines from the associated web page.

Result

The Wiki web page displays in your default browser. The message Response sent successfully!! will print on the TIBCO Business Studio™ Container Edition console.

In order to configure hystrix dashboard , you will need a Hystrix stream URL which will be as follow:

http://localhost:8090/hystrix.stream

You can see the hystrix dashboard locally and the command name given will be displayed as shown below.