Unable to override LocatorCacheTimeout

in Help Center
Hi,
I seem to be unable to override the LocatorCacheTimeout.
These are the first three lines of my application.xml:
IceGrid.InstanceName=OpenRec2IceGrid
Ice.Default.LocatorCacheTimeout=0
Ice.Default.Locator=OpenRec2IceGrid/Locator:default -p 12000
Printing out the value of the property yeilds -1.
System.out.println(basePrx.ice_getLocatorCacheTimeout());
Is there a specific order that I should be concerned about? Either it is not being reset at all or something is overriding it.
I'm trying to disable the locator cache so that I can effectively use replicas for load balancing.
I seem to be unable to override the LocatorCacheTimeout.
These are the first three lines of my application.xml:
IceGrid.InstanceName=OpenRec2IceGrid
Ice.Default.LocatorCacheTimeout=0
Ice.Default.Locator=OpenRec2IceGrid/Locator:default -p 12000
Printing out the value of the property yeilds -1.
System.out.println(basePrx.ice_getLocatorCacheTimeout());
Is there a specific order that I should be concerned about? Either it is not being reset at all or something is overriding it.
I'm trying to disable the locator cache so that I can effectively use replicas for load balancing.
0
Comments
1.IceGrid:
2.Client application
That is, you should configure "Ice.Default.LocatorCacheTimeout=0" in your client application instead of IceGrid.
Here is my application.xml file:
This is my config.client file:
This is my registry config file:
Can anyone spot anything?
Is there a way to change the LocatorCacheTimeout property directly? ie. such as a proxy method?
You can try this:
Note that it also works with the Ice.Default.LocatorCacheTimeout configuration.
For example, take the Java IceGrid/simple demo and:
- in Client.java, print hello.ice_getLocatorCacheTimeout() after retrieving hello
- in config.client, set Ice.Default.LocatorCacheTimeout=0
When you run the client, you'll see "0" for the locator cache timeout, not -1.
I suspect a bug somewhere in your client.
Best regards,
Bernard