summaryrefslogtreecommitdiff
path: root/java/demo/Glacier2/callback/SessionManagerI.java
blob: fedb807dd8acbb43d2041e5b63a6e6d6ba377dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// **********************************************************************
//
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

public final class SessionManagerI extends Glacier2._SessionManagerDisp
{
    public Glacier2.SessionPrx
    create(String userId, Glacier2.SessionControlPrx control, Ice.Current current)
    {
        System.out.println("creating session for user `" + userId + "'");
        Glacier2.Session session = new SessionI(userId);
        return Glacier2.SessionPrxHelper.uncheckedCast(current.adapter.addWithUUID(session));
    }
}