Does it need to generate RMI stub?If need ,then every public method in it should throw RemoteException.RemoteDataImpl has the same interface (DataInterface) as Data.The method in Data no need to throw RemoteException.Then how can I define DataInterface?
RemoteDataImpl methods don't need to throw RemoteException, and neither do Data methods. It is perfectly legal for an interface implementation to throw fewer or narrower exceptions than the interface says. In general, it is perfectly legal for a subtype to narrow a type's throws clause. - Peter
Post by:autobot
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, the permaculture playing cards