Plain RMI console client
I'm working on a client-server application implemented with RMI where the client is a simple console application with several methods that the server can remotely invoke. When the client is started, it registers itself with the server and then it should just "hang" there and wait for i开发者_如何学JAVAnvocations from the server (each method also prints some information using System.out.println
and sometimes needs input from the user). How do I make the client just "hang" and wait?
Any JVM that has exported remote objects will 'hang and wait' as long as those objects remain exported.
精彩评论