Technical requirements
To build and run the samples mentioned in this chapter, you will need a Mac or PC (Windows or Linux) with the following software:
- Java Development Kit, version 8 or higher: https://adoptium.net/
- Apache Maven: https://maven.apache.org/
- A Git client: https://git-scm.com/
All the source code used in this chapter is available on GitHub at
Once you have cloned the GitHub repository, you can start the Open Liberty server that these code samples will execute in, by entering the ch6
directory and entering the following command from the command line:
mvn clean package liberty:run
You can then stop the server in the same command window by pressing Ctrl + C.
The application that's deployed to the Open Liberty server will be given a context root of ch6
. For example, the full URL to a JAX-RS resource would be http://localhost:9080/ch6/path/to/resource
. This will be reflected in the code samples in this chapter that illustrate sending...