wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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:
 
wood burning stoves
 
subject: Relationship between java.rmi.RemoteException and java.rmi.Remote
 
Similar Threads
Exceptions
Mock question about Interfaces and Exceptions
Declare to throw RemoteException
is it compulsory to throw remote exception?.
Answers of Sun's Free Proficiency Assessment