summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/deployer/Service.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-10-20 06:54:48 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-10-20 06:54:48 +0000
commitf1b9887224219f99c93e3a8a2b562e0840b4924a (patch)
treeee66f9e2dcac347866c755af4dda423162c187b8 /cpp/test/IceGrid/deployer/Service.cpp
parentadded missing property IceStorm.TopicManager.AdapterId. (diff)
downloadice-f1b9887224219f99c93e3a8a2b562e0840b4924a.tar.bz2
ice-f1b9887224219f99c93e3a8a2b562e0840b4924a.tar.xz
ice-f1b9887224219f99c93e3a8a2b562e0840b4924a.zip
Fixed bug 527.
Diffstat (limited to 'cpp/test/IceGrid/deployer/Service.cpp')
-rw-r--r--cpp/test/IceGrid/deployer/Service.cpp9
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();