Example Java client for App-Config-App
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt
README.md
pom.xml

README.md

App-Config-Java

This is an example Java client for App-Config-App. App-Config-Java is only intended as a proof of concept, and I recommend implementing custom solutions in your own applications.

Requirements

Building and Running

$ mvn package
$ java -jar target/app-config-java.jar
$ URL: HTTP_URL_TO_JSON
$ Username: CLIENT_USERNAME
$ Password: CLIENT_PASSWORD
$ Interval in seconds: HOW_OFTEN_TO_POLL

App-Config-Java will then poll the URL at the specified interval for changes. If there are changes, then App-Config-Java will output the new configuration to the console.

Gotchas

If you enter an HTTPS URL, then the certificate must be trusted by the JVM, otherwise App-Config-Java will fail to connect.