summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Forward.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-08-24 22:01:20 +0000
committerMarc Laukien <marc@zeroc.com>2001-08-24 22:01:20 +0000
commit96f9a4887edb7d7778332e0eb12657b8ace3b42e (patch)
treef9476cd6037e8152def769f46ea7a67a7ab21b2b /cpp/src/IcePack/Forward.cpp
parentmore activation stuff (diff)
downloadice-96f9a4887edb7d7778332e0eb12657b8ace3b42e.tar.bz2
ice-96f9a4887edb7d7778332e0eb12657b8ace3b42e.tar.xz
ice-96f9a4887edb7d7778332e0eb12657b8ace3b42e.zip
fixes
Diffstat (limited to 'cpp/src/IcePack/Forward.cpp')
-rw-r--r--cpp/src/IcePack/Forward.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/IcePack/Forward.cpp b/cpp/src/IcePack/Forward.cpp
index 1ae63177edb..fac3185e7f8 100644
--- a/cpp/src/IcePack/Forward.cpp
+++ b/cpp/src/IcePack/Forward.cpp
@@ -16,9 +16,17 @@ using namespace std;
using namespace Ice;
using namespace IcePack;
-IcePack::Forward::Forward(const AdminPtr& admin) :
+IcePack::Forward::Forward(const CommunicatorPtr& communicator, const AdminPtr& admin) :
+ _communicator(communicator),
_admin(admin)
{
+ _activator = new Activator(_communicator);
+ _activator->start();
+}
+
+IcePack::Forward::~Forward()
+{
+ _activator->destroy();
}
ObjectPtr
@@ -29,6 +37,7 @@ IcePack::Forward::locate(const ObjectAdapterPtr& adapter, const string& identity
if (desc)
{
assert(desc->object);
+ _activator->activate(desc);
throw LocationForward(desc->object);
}
return 0;