Deploying the HTTP Request Response Sample

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

Procedure

  1. Generate the EAR file.
    1. Select tibco.bw.sample.palette.http.RequestResponse.application
    2. Navigate to the Overview tab
    3. Click Export Application for Deployment.
    4. Click Finish.
  2. Log into your Cloud Foundry environment.
  3. Copy the manifest.yml file from the samples directory to the directory that contains the EAR file.
  4. Edit the manifest.yml file, set the value of the PATH variable to point to the locatoin of the EAR file, and save the file.
  5. Open up a command terminal and navigate to the directory where the EAR file and manifest.yml file are stored.
  6. From the terminal, execute cf push -f manifest.yml.
  7. Copy the routable URL of the application once it starts executing.
  8. Edit the request_news.html page found in samples > palette > http > RequestResponse directory.
  9. Replace the URL http://127.0.0.1:8080 with the routable URL of the application.
  10. Click the Get News from Wiki! button to request headlines from the associated web page.

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:

05:00:15.674 INFO  [Thread-14] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.palette.http.RequestResponse.application:1.0]
05:00:28.966 INFO  [bwEngThread:In-Memory Process Worker-2] c.t.b.p.g.L.t.b.s.p.h.R.Log - Response sent successfully!!