A
Agustin Chernitsky
Hi Guys,
I'm starting with RMI (I actually started programming in Java a month ago)
and I have some questions/doubts:
1.- Why I don't get any persistent connections? All connections initiated
from Clients to Server are in a status of TIME_WAIT as soon as there is no
more interactivity (Remote method invocations) between them. Does this mean
that every time I invoke a remote method, RMI creates a socket connection??
Is there a way to make a permanent connection?
2.- If I register a remote client object reference (a callback) to the
server, and the pass this remote reference to another client (ie Client A
registers to Server, the Server gives Client B the ref of A), what will
happen? A and B will establish a TCP connection directly?
Well, Any ideas are welcome!!
Thanks!
Agustin.
I'm starting with RMI (I actually started programming in Java a month ago)
and I have some questions/doubts:
1.- Why I don't get any persistent connections? All connections initiated
from Clients to Server are in a status of TIME_WAIT as soon as there is no
more interactivity (Remote method invocations) between them. Does this mean
that every time I invoke a remote method, RMI creates a socket connection??
Is there a way to make a permanent connection?
2.- If I register a remote client object reference (a callback) to the
server, and the pass this remote reference to another client (ie Client A
registers to Server, the Server gives Client B the ref of A), what will
happen? A and B will establish a TCP connection directly?
Well, Any ideas are welcome!!
Thanks!
Agustin.