about socket reuse in RMI
jackieict at gmail.com
Fri Jun 22 01:22:36 PDT 2007
socket reuse in RMI confused me much for several reasons:
In my opionion, one socket is boud some information about server and
port(right?), how such socket can be reused to communicate to another
server,just change the IP address and port number? Is it possible to do so
in user space of linux? ServerSocket is used to accept new connection, one
ServerSocket instance can fit the need of application, why reuse is needed.
What the socket reuse of RMI means?
Some one give me such a comment:
*RMI will reuse sockets if the socket was created by the same socket
factory. So, if two remote object's socket factories that are .equal() then
RMI will reuse a client's socket to talk with each RMI object. It will also
reuse that socket for multiple calls to those remote objects.*
So this is not socket factory reuse ,rather than socket reuse.
I was confused greatly, Do everyone can give me a clear explanation about
thanks for any reply!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-dev