Skip to content

scottfrederick/cf-java-client-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-java-client-web

This is a trivial app used to demonstrate an app running on CF talking to CC on the same platform.

Build

  1. Edit the application.yml file in the project to configure the details of the CF platform the app is running on.

  2. Using Gradle, build and package the application:

    $ ./gradlew clean assemble

Deploy to Pivotal Cloud Foundry

  1. Push the app to CF

    $ cf push

Test the Application

  1. In a browser, access the application at the route that was created for you.

  2. In a terminal window, run cf logs cf-java-client-web to view the logs of the app while sending requests.

  3. Press the Connect button on the web UI to connect the UI frontend to the backend.

  4. Immediately after connecting, press the Request button. This will send requests to an endpoint of the platform specified in application.yml. You should see a raw JSON dump on the UI.

  5. Repeatedly pressing the Request button should return results within a few seconds.

  6. Let the app sit idle for at least 15 minutes.

  7. Press the Request button again. The request to the CF endpoint should hang for about 15 minutes with pending displayed on the UI. After 15 minutes the app will get a Connection timed out exception.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published