diff options
Diffstat (limited to 'cpp/test/Ice/operations/Server.cpp')
-rw-r--r-- | cpp/test/Ice/operations/Server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp index af451ce4bbf..16bb85f75da 100644 --- a/cpp/test/Ice/operations/Server.cpp +++ b/cpp/test/Ice/operations/Server.cpp @@ -9,6 +9,7 @@ #include <Ice/Ice.h> #include <TestI.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; } |