diff options
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index c629a0c91cc..6ff2d21547b 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -573,7 +573,7 @@ Client::run(StringSeq& originalArgs) } lookupEndpoints = os.str(); } - + ObjectPrx prx = communicator()->stringToProxy("IceGrid/Lookup -d:" + lookupEndpoints); LookupPrx lookupPrx = LookupPrx::uncheckedCast(prx->ice_collocationOptimized(false)); @@ -822,9 +822,7 @@ Client::run(StringSeq& originalArgs) // if(registry->ice_getIdentity() == localRegistry->ice_getIdentity()) { - properties->setProperty("CollocInternal.AdapterId", IceUtil::generateUUID()); - ObjectAdapterPtr colloc = communicator()->createObjectAdapter("CollocInternal"); - colloc->setLocator(0); + ObjectAdapterPtr colloc = communicator()->createObjectAdapter(""); // colloc-only adapter ObjectPrx router = colloc->addWithUUID(new ReuseConnectionRouter(locator)); communicator()->setDefaultRouter(RouterPrx::uncheckedCast(router)); registry = registry->ice_router(communicator()->getDefaultRouter()); |