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/SessionI.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/SessionI.cpp')
-rw-r--r-- | cpp/src/IceGrid/SessionI.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp index b636a27b13e..2f6ced3a1b1 100644 --- a/cpp/src/IceGrid/SessionI.cpp +++ b/cpp/src/IceGrid/SessionI.cpp @@ -8,6 +8,7 @@ // ********************************************************************** #include <Ice/Ice.h> +#include <IceUtil/UUID.h> #include <IceGrid/SessionI.h> #include <IceGrid/QueryI.h> #include <IceGrid/LocatorI.h> @@ -299,7 +300,10 @@ ClientSessionManagerI::ClientSessionManagerI(const DatabasePtr& database, int ti Glacier2::SessionPrx ClientSessionManagerI::create(const string& user, const Glacier2::SessionControlPrx& ctl, const Ice::Current& current) { - Glacier2::SessionPrx s = Glacier2::SessionPrx::uncheckedCast(current.adapter->addWithUUID(create(user, ctl))); + Ice::Identity id; + id.name = IceUtil::generateUUID(); + id.category = current.id.category; + Glacier2::SessionPrx s = Glacier2::SessionPrx::uncheckedCast(current.adapter->add(create(user, ctl), id)); if(ctl) { try @@ -362,7 +366,10 @@ ClientSSLSessionManagerI::create(const Glacier2::SSLInfo& info, const Glacier2:: } SessionIPtr session = new SessionI(userDN, _database, _timeout, _waitQueue, ctl); - Glacier2::SessionPrx s = Glacier2::SessionPrx::uncheckedCast(current.adapter->addWithUUID(session)); + Ice::Identity id; + id.name = IceUtil::generateUUID(); + id.category = current.id.category; + Glacier2::SessionPrx s = Glacier2::SessionPrx::uncheckedCast(current.adapter->add(session, id)); if(ctl) { try |