Page 86 lists a way for the compiler to enforce that the stub and bean both contain the same methods. But the methods for EJBObject should throw RemoteException, and the bean methods shouldn't. How can this be resolved?
You have to define 2 interfaces A and B, B extends A and have the same methods but without RemoteException. Parent interface A will declare RemoteException and your remote interface can extend it. Your bean will implement B which does not throw RemoteException. Child can specialize or not declare exceptions when overwriting operations from parent.