summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ObjectRegistryI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/ObjectRegistryI.cpp')
-rw-r--r--cpp/src/IcePack/ObjectRegistryI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IcePack/ObjectRegistryI.cpp b/cpp/src/IcePack/ObjectRegistryI.cpp
index 6f636313d3a..4278c96e7e9 100644
--- a/cpp/src/IcePack/ObjectRegistryI.cpp
+++ b/cpp/src/IcePack/ObjectRegistryI.cpp
@@ -14,6 +14,7 @@
#include <IcePack/ObjectRegistryI.h>
#include <IcePack/TraceLevels.h>
+#include <Freeze/Initialize.h>
using namespace std;
using namespace IcePack;
@@ -23,8 +24,9 @@ IcePack::ObjectRegistryI::ObjectRegistryI(const Ice::CommunicatorPtr& communicat
const string& objectsDbName,
const string& typesDbName,
const TraceLevelsPtr& traceLevels) :
- _objects(communicator, envName, objectsDbName, true),
- _types(communicator, envName, typesDbName, true),
+ _connection(Freeze::createConnection(communicator, envName)),
+ _objects(_connection, objectsDbName, true),
+ _types(_connection, typesDbName, true),
_traceLevels(traceLevels)
{
}