diff options
Diffstat (limited to 'cpp/test/IceGrid/deployer/Service.cpp')
-rw-r--r-- | cpp/test/IceGrid/deployer/Service.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/test/IceGrid/deployer/Service.cpp b/cpp/test/IceGrid/deployer/Service.cpp index b96f8881558..6384e687ef1 100644 --- a/cpp/test/IceGrid/deployer/Service.cpp +++ b/cpp/test/IceGrid/deployer/Service.cpp @@ -9,6 +9,7 @@ #include <Ice/Ice.h> #include <IceBox/IceBox.h> +#include <Freeze/Freeze.h> #include <TestI.h> #ifndef TEST_SERVICE_API @@ -61,8 +62,14 @@ ServiceI::start(const string& name, const StringSeq& args) { Ice::PropertiesPtr properties = communicator->getProperties(); - Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name); + if(properties->getPropertyAsInt(name + ".Freeze") > 0) + { + // + // We do this to ensure the dbenv directory exists. + // + Freeze::createConnection(communicator, name); + } Ice::ObjectPtr object = new TestI(adapter, properties); adapter->add(object, Ice::stringToIdentity(properties->getProperty(name + ".Identity"))); adapter->activate(); |