It is important to understand how proxies are influenced by Ice configuration properties and settings. The relevant properties can be classified into two categories: defaults and overrides.
On this page:
Proxy Default Properties
Default properties affect proxies created as the result of an Ice invocation, or by calling
propertyToProxy on a communicator. These properties do not influence proxies created by proxy factory methods.
For example, suppose we define the following default property:
We can verify that the property has the desired affect using the following C++ code:
Furthermore, we can verify that the property does not affect proxies returned by factory methods:
Proxy Override Properties
Defining an override property causes the Ice run time to ignore any equivalent proxy setting and use the override property value instead. For example, consider the following property definition:
This property instructs the Ice run time to use only secure endpoints, producing the same semantics as calling
ice_secure(true) on every proxy. However, the property does not alter the settings of an existing proxy, but rather directs the Ice run time to use secure endpoints regardless of the proxy's security setting. We can verify that this is the case using the following C++ code: