This is a trivial app used to demonstrate an app running on CF talking to CC on the same platform.
-
Edit the
application.yml
file in the project to configure the details of the CF platform the app is running on. -
Using Gradle, build and package the application:
$ ./gradlew clean assemble
-
In a browser, access the application at the route that was created for you.
-
In a terminal window, run
cf logs cf-java-client-web
to view the logs of the app while sending requests. -
Press the
Connect
button on the web UI to connect the UI frontend to the backend. -
Immediately after connecting, press the
Request
button. This will send requests to an endpoint of the platform specified inapplication.yml
. You should see a raw JSON dump on the UI. -
Repeatedly pressing the
Request
button should return results within a few seconds. -
Let the app sit idle for at least 15 minutes.
-
Press the
Request
button again. The request to the CF endpoint should hang for about 15 minutes withpending
displayed on the UI. After 15 minutes the app will get aConnection timed out
exception.