summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/simple/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-11-09 10:20:21 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-11-09 10:20:21 +0000
commitea30fa78f02c20b4707ec0df9efd7d3177c0cc59 (patch)
treeabd4e0ff8540b7d86f77b030418756053333874a /cpp/demo/IceGrid/simple/Client.cpp
parentRemoved current status from adapters in templates (diff)
downloadice-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.cpp3
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)