开发者

java rmi call discarded after remote exception thrown

开发者 https://www.devze.com 2023-03-01 17:48 出处:网络
When using rmi ,after a call to remote metod if connection betwen two comput开发者_StackOverflow中文版er broke and remote exception thrown ,called metod execution discarded immediately or it continue

When using rmi ,after a call to remote metod if connection betwen two comput开发者_StackOverflow中文版er broke and remote exception thrown ,called metod execution discarded immediately or it continue execution until it finish ? I think it has another thread at remote machine and it continue but i am not sure ..


going on my initial interpretation of your question, i think you are asking if the remote method call will continue on the remote computer after the connection is severed and the caller has already received an exception signalling a connection failure.

assuming that is your question, the answer is "yes". the remote method may continue executing even though communication has been effectively lost. in general, assuming the remote computer has read the method input successfully, it will not realize that the connection has been lost until it attempts to return the method result back to the caller (i.e. when it tries to write to the socket).

0

精彩评论

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

关注公众号