11.9.2. Hot Rod Java Client Configuration
The Hot Rod Java client is configured both programmatically and externally using a configuration file or a properties file. The following example illustrate creation of a client instance using the available Java fluent API:
Example 11.1. Client Instance Creation
Configuring the Hot Rod Java client using a properties file
To configure the Hot Rod Java client, edit the hotrod-client.properties file on the classpath.
The following example shows the possible content of the
hotrod-client.properties file.
Example 11.2. Configuration
Either of the following two constructors must be used in order for the properties file to be consumed by Red Hat JBoss Data Grid:
new RemoteCacheManager(boolean start)new RemoteCacheManager()