posted 22 years ago
Lots of ways to do this....
One way I've done this is using sockets. One VM can be the "server" and create a ServerSocket on some port. Then the other VM can connect to that using a Socket. You then get I/O streams to talk on.
Sending serialized Objects over the streams makes a pretty easy "protocol".
If both VMs are peers, then you have to come up with some kind of agreement about which is the server (first one up, probably).