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.
- Java JDK 7
- Maven 3
- Running App-Config-App instance
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.
If you enter an HTTPS URL, then the certificate must be trusted by the JVM, otherwise App-Config-Java will fail to connect.