summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/SessionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-05-05 12:08:20 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-05-05 12:08:20 +0000
commit18f9a9bed9a763f4d902bdc859cc1b2731679d58 (patch)
tree0ee9bd8702b9e604d8e5a5102a5d001f3baf4ec4 /cpp/src/IceGrid/SessionI.cpp
parentMore changes wrt string conversion (diff)
downloadice-18f9a9bed9a763f4d902bdc859cc1b2731679d58.tar.bz2
ice-18f9a9bed9a763f4d902bdc859cc1b2731679d58.tar.xz
ice-18f9a9bed9a763f4d902bdc859cc1b2731679d58.zip
Removed session based locator, refactored allocation code.
Diffstat (limited to 'cpp/src/IceGrid/SessionI.cpp')
-rw-r--r--cpp/src/IceGrid/SessionI.cpp21
1 files changed, 3 insertions, 18 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp
index 17576ae0534..36937490c3e 100644
--- a/cpp/src/IceGrid/SessionI.cpp
+++ b/cpp/src/IceGrid/SessionI.cpp
@@ -47,12 +47,6 @@ public:
_cb = 0;
}
- virtual bool
- allocateOnce()
- {
- return true; // Only allow one allocation
- }
-
private:
TPtr _cb;
@@ -110,12 +104,6 @@ SessionI::SessionI(const string& userId,
Ice::Trace out(_traceLevels->logger, _traceLevels->sessionCat);
out << _prefix << " session `" << _userId << "' created";
}
-
- //
- // Register session based query and locator interfaces
- //
- Ice::CommunicatorPtr com = adapter->getCommunicator();
- _locator = Ice::LocatorPrx::uncheckedCast(adapter->addWithUUID(new LocatorI(com, _database, registry, this)));
}
SessionI::~SessionI()
@@ -148,12 +136,6 @@ SessionI::getTimeout(const Ice::Current&) const
return _timeout;
}
-Ice::LocatorPrx
-SessionI::getLocator(const Ice::Current& current) const
-{
- return _locator;
-}
-
void
SessionI::allocateObjectById_async(const AMD_Session_allocateObjectByIdPtr& cb,
const Ice::Identity& id,
@@ -299,6 +281,9 @@ ClientSessionManagerI::ClientSessionManagerI(const DatabasePtr& database,
_registry(registry),
_timeout(timeout)
{
+ //
+ // TODO: XXX: Remove _registry attribute
+ //
}
Glacier2::SessionPrx