tree: e466b0bb67282adf9e303a765c78dd4c6ff9d6f1 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/configured-client/README.MD

Client Configured by Property File Example

This example demonstrates configuration of a Client using property file. The property file microprofile-config.properties is consumed by Microprofile Config implementation and the properties from the property file are set to Jersey Configuration.

The following properties are defined in microprofile-config.properties property file:

  • jersey.config.client.connector.provider - jersey property name for the connector to be used
  • entity.value - user defined property to be be sent as an echo message

Contents

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP methodsNotes
/helloworldHelloWorldResourcePOSTEchoes the message sent

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container.