diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-11-09 10:20:21 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-11-09 10:20:21 +0000 |
commit | ea30fa78f02c20b4707ec0df9efd7d3177c0cc59 (patch) | |
tree | abd4e0ff8540b7d86f77b030418756053333874a /cpp/demo/IceGrid/simple/Client.cpp | |
parent | Removed current status from adapters in templates (diff) | |
download | ice-ea30fa78f02c20b4707ec0df9efd7d3177c0cc59.tar.bz2 ice-ea30fa78f02c20b4707ec0df9efd7d3177c0cc59.tar.xz ice-ea30fa78f02c20b4707ec0df9efd7d3177c0cc59.zip |
Changed IceGrid::Query interface.
Diffstat (limited to 'cpp/demo/IceGrid/simple/Client.cpp')
-rw-r--r-- | cpp/demo/IceGrid/simple/Client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/IceGrid/simple/Client.cpp b/cpp/demo/IceGrid/simple/Client.cpp index b236654ca42..ec27fd22578 100644 --- a/cpp/demo/IceGrid/simple/Client.cpp +++ b/cpp/demo/IceGrid/simple/Client.cpp @@ -58,7 +58,8 @@ HelloClient::run(int argc, char* argv[]) } catch(const Ice::NotRegisteredException&) { - IceGrid::QueryPrx query = IceGrid::QueryPrx::checkedCast(communicator()->stringToProxy("DemoIceGrid/Query")); + string proxy = communicator()->getProperties()->getProperty("IceGrid.InstanceName") + "/Query"; + IceGrid::QueryPrx query = IceGrid::QueryPrx::checkedCast(communicator()->stringToProxy(proxy)); hello = HelloPrx::checkedCast(query->findObjectByType("::Demo::Hello")); } if(!hello) |