diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-31 14:47:34 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-31 14:47:34 +0000 |
commit | 06c44f2499a86bd83c10fabeb21813af8fa11c11 (patch) | |
tree | b0d878b6e00753645838cd539e8736a084118b6b /cpp/src/IceGrid/SessionServantLocatorI.cpp | |
parent | Session fixes (diff) | |
download | ice-06c44f2499a86bd83c10fabeb21813af8fa11c11.tar.bz2 ice-06c44f2499a86bd83c10fabeb21813af8fa11c11.tar.xz ice-06c44f2499a86bd83c10fabeb21813af8fa11c11.zip |
Fixed category of session objects.
Diffstat (limited to 'cpp/src/IceGrid/SessionServantLocatorI.cpp')
-rw-r--r-- | cpp/src/IceGrid/SessionServantLocatorI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/SessionServantLocatorI.cpp b/cpp/src/IceGrid/SessionServantLocatorI.cpp index 725e866b130..b35941d7cda 100644 --- a/cpp/src/IceGrid/SessionServantLocatorI.cpp +++ b/cpp/src/IceGrid/SessionServantLocatorI.cpp @@ -15,7 +15,9 @@ using namespace std; using namespace IceGrid; -SessionServantLocatorI::SessionServantLocatorI(const Ice::ObjectAdapterPtr& adapter) : _adapter(adapter) +SessionServantLocatorI::SessionServantLocatorI(const Ice::ObjectAdapterPtr& adapter, const string& instanceName) : + _adapter(adapter), + _instanceName(instanceName) { } @@ -47,6 +49,7 @@ SessionServantLocatorI::add(const Ice::ObjectPtr& servant, const Ice::Connection Lock sync(*this); Ice::Identity id; id.name = IceUtil::generateUUID(); + id.category = _instanceName; if(!_servants.insert(make_pair(id, SessionServant(servant, con))).second) { throw Ice::AlreadyRegisteredException(__FILE__, __LINE__, "servant", id.name); |