This content has been marked as final.
Show 3 replies
-
1. Re: Connect with property file
gustavonalle Oct 18, 2016 1:39 PM (in response to barash)The empty constructor should work - it will look for a hotrod-client.properties file in the classpath
-
2. Re: Connect with property file
barash Oct 19, 2016 10:03 AM (in response to gustavonalle)I was hoping to use different properties file based on environment.
-
3. Re: Connect with property file
nadirx Oct 19, 2016 10:15 AM (in response to barash)Use the ConfigurationBuilder:
ConfigurationBuilder b = new ConfigurationBuilder(); Properties p = new Properties(); p.load(new FileReader("path/to/file.properties")); b.withProperties(p); RemoteCacheManager rcm = new RemoteCacheManager(b.build());