Created
April 2, 2013 23:51
-
-
Save pas256/5297243 to your computer and use it in GitHub Desktop.
Response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
garethbowles1 | |
1:55 spoon16, here's the answer from allenxwang: | |
1:55 You need to use JDBCConfigurationSource together with DynamicConfiguration, where it can poll the configuration source at some interval. Then add DynamicConfiguration to ConfigurationManager: | |
1:55 DynamicConfiguration dynamicConfig = ... // create config with JDBCConfigurationSource | |
1:55 (AggregatedConfiguration) config = (AggregatedConfiguration) ConfigurationManager.getConfigInstance(); | |
1:55 config.addConfiguration(dynamicConfig, "Database"); | |
1:55 Then the fast property will get callback once the value is changed in the database. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment