aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Relationship between java.rmi.RemoteException and java.rmi.Remote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Relationship between java.rmi.RemoteException and java.rmi.Remote" Watch "Relationship between java.rmi.RemoteException and java.rmi.Remote" New topic
Author

Relationship between java.rmi.RemoteException and java.rmi.Remote

Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

Hi,

The methods of the business interface may only throw the
java.rmi.RemoteException if the interface extends java.rmi.Remote.


The above is what the spec states.

I want to know the reason behind this statement.Why is it not possible or desirable to allow a method to throw a RemoteException if the interface does not extend java.rmi.Remote.

This maybe coming across as unclever , however I am just a little curious :roll:
 
Consider Paul's rocket mass heater.
 
subject: Relationship between java.rmi.RemoteException and java.rmi.Remote
 
Similar Threads
Declare to throw RemoteException
Mock question about Interfaces and Exceptions
is it compulsory to throw remote exception?.
Answers of Sun's Free Proficiency Assessment
Exceptions