// // Copyright (c) ZeroC, Inc. All rights reserved. // #include #include #include #include using namespace std; using namespace Ice; using namespace Test; void TestI::transient(const Current& current) { CommunicatorPtr communicator = current.adapter->getCommunicator(); ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", TestHelper::getTestEndpoint(communicator->getProperties(), 1)); adapter->activate(); adapter->destroy(); } void TestI::deactivate(const Current& current) { current.adapter->deactivate(); IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(100)); } string CookieI::message() const { return "blahblah"; }