diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-04-28 16:24:03 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-04-28 16:24:03 +0000 |
commit | bf3729b95ca9928b07babe4f1216883cdc37086b (patch) | |
tree | 1a8b2720f3200f4bf705d4d4c12dddcf064be6bf /cpp/test/IceGrid/allocation/Server.cpp | |
parent | Adding warning comments about changing toString() behaviors that may break (diff) | |
download | ice-bf3729b95ca9928b07babe4f1216883cdc37086b.tar.bz2 ice-bf3729b95ca9928b07babe4f1216883cdc37086b.tar.xz ice-bf3729b95ca9928b07babe4f1216883cdc37086b.zip |
More allocation fixes, removed session based Query interface.
Diffstat (limited to 'cpp/test/IceGrid/allocation/Server.cpp')
-rw-r--r-- | cpp/test/IceGrid/allocation/Server.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/cpp/test/IceGrid/allocation/Server.cpp b/cpp/test/IceGrid/allocation/Server.cpp index 958ad7e680a..daaa34fb6b3 100644 --- a/cpp/test/IceGrid/allocation/Server.cpp +++ b/cpp/test/IceGrid/allocation/Server.cpp @@ -32,11 +32,16 @@ Server::run(int argc, char* argv[]) string name = properties->getProperty("Ice.ProgramName"); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server"); - Ice::ObjectPtr object; - object = new TestI(adapter, properties); - adapter->add(object, Ice::stringToIdentity("allocatable")); - object = new TestI(adapter, properties); - adapter->add(object, Ice::stringToIdentity("nonallocatable")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("nonallocatable")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable1")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable2")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable3")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable4")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable11")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable21")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable31")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable41")); shutdownOnInterrupt(); try |