Archived

This forum has been archived. Please start a new discussion on GitHub.

Locator error

Hi , in my system I use tow registry

Default: IceGrid/Locator -t:tcp -h 127.0.0.1 -p 20000
Second: Second/Locator -t:tcp -h 127.0.0.1 -p 30000

so for search the proxy instance up the second registry I use an IceGrid::QueryPrx:
Ice::ObjectPrx base( communicator->stringToProxy(props->getProperty("Proxy.presenceItemsLocator")));
IceGrid::LocatorPrx topicLocatorPrx(IceGrid::LocatorPrx::checkedCast(base));
IceGrid::QueryPrx queryPrx = topicLocatorPrx->getLocalQuery(); 

now when the proxy is founded it has a wrong locator
	Ice::ObjectPrx basePrx( queryPrx->findObjectById( identity ) ) ); 
//       basePrx->ice_getLocator() ; is the default locator
why basePrx has the Default locator and not the Second locator?