is there any connection between secket and RMI?
because i was asked by interviewer the there is two JVM running and that JVM needs communication.
how can we do that.
i told using RMI.but he needs the answer Socket programming.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
There are any number of ways for two JVMs to communicate, RMI being one of them. Most of them (including RMI) will use TCP/IP sockets at the lowest level. RMI in particular has kind of fallen out of favor, though - these days one would rather use web services.