Deploying the HTTP Request Response Sample
The following steps describe how to deploy the application to your Cloud Foundry environment.
- Procedure
- Generate the EAR file.
- Select tibco.bw.sample.palette.http.RequestResponse.application
- Navigate to the Overview tab
- Click Export Application for Deployment.
- Click Finish.
- Log into your Cloud Foundry environment.
- Copy the manifest.yml file from the samples directory to the directory that contains the EAR file.
- 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.
- Open up a command terminal and navigate to the directory where the EAR file and
manifest.yml
file are stored. - From the terminal, run
cf push -f manifest.yml
. - Copy the routable URL of the application once it starts executing.
- Edit the
request_news.html
page found in directory. - Replace the URL
http://127.0.0.1:8080
with the routable URL of the application. - Click the Get News from Wiki! button to request headlines from the associated web page.
ResultTo see the log output use the command
cf logs
application name --recent
.
If the application deploys successfully, you can 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!!