Home Help Center

ObjectAdapter.getLocator() gone in 1.4?

brianbrian Member brian whitneyOrganization: boulder research and developmentProject: MarketBank ✭✭✭
Tried to compile our source with 1.4 and could not because it seems that ObjectAdapter::getLocator() no longer exists in the code and has been taken out of the manual as well. The CHANGES file in the installation only says that this method was added under the section, "Changes since version 1.2.0", but says nothing about it being taken out.

What should we do?

Thanks,

Brian

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    You can get it from the configuration:
      Ice::PropertiesPtr properties = communicator->getProperties();
      string proxy = properties->getProperty("Ice.Default.Locator");
      Ice::LocatorPrx locator = LocatorPrx::uncheckedCast(communicator->stringToProxy(proxy));
    

    Out of curiosity, why do you need the locator proxy? If you need it to lookup objects by identity, I would recomend to use the IcePack::Query interface instead.

    Benoit.
Sign In or Register to comment.