Testing in TIBCO Business Studio™ Container Edition

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