java rmi call discarded after remote exception thrown
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).
精彩评论