Testing in TIBCO Business Studio™ for BusinessWorks™

Prerequisites

  • Access to a local Consul or Eureka server URL used for Service Registration and Discovery.
  • A web browser.

Procedure

  1. From the File Explorer, navigate to the samples directory and select Container > cloudfoundry > core > ServiceDiscovery and double-click tibco.bwce.sample.core.servicediscovery.Service.
  2. From the File Explorer, navigate to the samples directory and select Container > cloudfoundry > core > ServiceDiscovery and double-click tibco.bwce.sample.core.servicediscovery.Client.
  3. From the Project Explorer expand the tibco.bwce.sample.core.servicediscovery.Service.application project.
  4. Expand the Package Unit folder and double-click Properties.
  5. Set the Application Profile to Local. For more information see Setting the Default Application Profile.
  6. From the Project Explorer expand the tibco.bwce.sample.core.servicediscovery.Client.application project.
  7. Expand the Package Unit folder and double-click Properties.
  8. Set the Application Profile to Local. For more information see Setting the Default Application Profile.
  9. Click File > Save to save the project.
  10. Expand the Processes folder and the com.tibco.sample.servicediscovery.client package within that folder.
  11. Click Run > Debug Configurations.
  12. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  13. Select the Environment tab to add an environment variable.
  14. Click the Applications tab and then click the Deselect All button if you have multiple applications.
  15. Select the check boxes next to tibco.bwce.sample.core.servicediscovery.Service and tibco.bwce.sample.core.servicediscovery.Client.
  16. Click Debug.
    The sample now runs in the debug mode.
  17. Trigger the application by accessing:
    http://<hostname>:8080
  18. Click the Terminate icon to stop the process.

Result

The console window shows messages similar to:
17:35:39.320 INFO [bwEngThread:In-Memory Process Worker-2]
c.t.b.p.g.L.t.b.s.S.Hystrix.Log - "Hello from TIBCO"