开发者

Plain RMI console client

开发者 https://www.devze.com 2023-04-11 23:27 出处:网络
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,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号