CONTENTS | PREV | NEXT Java Remote Method Invocation


2.7 Exception Handling in Remote Method Invocation

Since remote methods include java.rmi.RemoteException in their signature, the caller must be prepared to handle those exceptions in addition to other application specific exceptions. When a java.rmi.RemoteException is thrown during a remote method invocation, the client may have little or no information on the outcome of the call -- whether a failure happened before, during, or after the call completed. Therefore, remote interfaces and the calling methods declared in those interfaces should be designed with these failure semantics in mind.



CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.