RMI

Hi,

I am developing a distributed application in which remote object should have capability to identify the clients.

Ex : Consider the following sequence in which two clients C1 & C2 access the remote object.

1. C1 access remote object

2. C2 access remote object

3. C1 access remote object

Remote object should have knowledge about the clients.

It should know it got accessed by two clients.

i.e.

Client1 access 2

Client2 access 1

How can I do this ?

[571 byte] By [satishpatil] at [2007-9-26 4:48:23]
# 1
Take a look at UnicastRemoteObject, which your server must subclass. It in turn subclasses RemoteServer. And RemoteServer has a method getClientHost().Not sure if this is enough ID for you.
bschauwe at 2007-6-29 18:38:38 > top of Java-index,Core,Core APIs...
# 2
send the name of the client in the method you are accessing the server from
sseans at 2007-6-29 18:38:38 > top of Java-index,Core,Core APIs...