blob: 563d8127d01f0b0bb877f4be9748d777a582fe83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// **********************************************************************
//
// Copyright (c) 2002
// ZeroC, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
final class HelloSessionI extends HelloSession
{
public
HelloSessionI(String userId, HelloSessionManagerI manager)
{
_userId = userId;
_manager = manager;
}
public void
hello(Ice.Current current)
{
System.out.println("Hello " + _userId);
}
public void
destroy(Ice.Current current)
{
_manager.remove(current.id);
}
private String _userId;
private HelloSessionManagerI _manager;
}
|