summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/ServerAMD.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
commit2c578015edcb36cdc0acd0227295de1dcca1b995 (patch)
treee163980b5dabb43a40089a29fdf8ff47a3e07f1c /cpp/test/Ice/operations/ServerAMD.cpp
parentno longer generating inspect method for each Ruby exception (diff)
downloadice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip
New AMI mapping
Diffstat (limited to 'cpp/test/Ice/operations/ServerAMD.cpp')
-rw-r--r--cpp/test/Ice/operations/ServerAMD.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/ServerAMD.cpp b/cpp/test/Ice/operations/ServerAMD.cpp
index 253f0c2a801..ea102675db6 100644
--- a/cpp/test/Ice/operations/ServerAMD.cpp
+++ b/cpp/test/Ice/operations/ServerAMD.cpp
@@ -9,6 +9,7 @@
#include <Ice/Ice.h>
#include <TestAMDI.h>
+#include <StateChangerI.h>
using namespace std;
@@ -20,6 +21,11 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
adapter->add(new MyDerivedClassI, communicator->stringToIdentity("test"));
adapter->activate();
+ communicator->getProperties()->setProperty("HoldAdapter.Endpoints", "default -p 12011:udp");
+ Ice::ObjectAdapterPtr holdAdapter = communicator->createObjectAdapter("HoldAdapter");
+ holdAdapter->add(new StateChangerI(new IceUtil::Timer(), adapter), communicator->stringToIdentity("hold"));
+ holdAdapter->activate();
+
communicator->waitForShutdown();
return EXIT_SUCCESS;
}