I have defined the public methods of Data class in a DataInterface. I have also defined a RemoteDataInterface which extends DataInterface and Remote. These methods throws Remote Exceptions . I have made DataServer class implements RemoteDataInterface. When I compile DataServer , I get the following exception xyz() method in DataServer cannot implement xyz() in DataInterface;overridden method doesnot throw java.rmi.RemoteException . Where am I going wrong ? -- Ravindra
If I am not mistaken, your DataInterface must be defined to throw RemoteException also. DataInterface -- Methods throw RemoteException RemoteDataInterface extends Remote , methods throw RemoteException. RemoteDataInterfaceImpl- methods need not throw RemoteException.
Never be satisfied with anything less than the best and you will surely pass the test...
Joined: Nov 04, 2000
Hi I have made my Data class to implement the Data interface which I use in local mode so I can't make the methods in DataInterface to throw RemoteException Thanks -- Ravi