Deploying the Sample

The following steps describe how to deploy the application to your Cloud Foundry environment.

Procedure

  1. Log into your Cloud Foundry environment.
  2. Copy the manifest.yml file from the samples directory to the directory that contains the EAR file.
  3. Edit the PATH variable in the manifest.yml file. Set the path to the location of the EAR file and Save the file.
    As the manifest file contains the service name, the service will automatically bind to this application at deployment.
  4. In your Cloud Foundry environment change to the directory where you placed your EAR file.
  5. From the terminal, execute cf push -f manifest.yml.

Result

To see the log output use the command cf logs <application name> --recent.

If the application deploys successfully, you will see a similar output in the console log.

13:49:06.733 INFO  [Framework Event Dispatcher: Equinox Container: 608aaa95-52d7-0015-1f90-d3fd61937bf8] com.tibco.thor.frwk.Application - Started by BusinessStudio, ignoring .enabled settings.

13:49:11.962 INFO  [bwEngThread:In-Memory Process Worker-6] c.t.b.p.g.L.t.b.s.b.s.j.Z.Log - Output of getCityInfo : 61801 Urbana Illinois Urbana, Illinois, United States 40.11 88.207

Output of getCityDistance :  Distance between two cities is : 4 miles. 61801 61820 Urbana Champaign Illinois Illinois Urbana, Illinois, United States Champaign, Illinois, United States