GeeCON Prague 2014*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes A question about RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "A question about RMI" Watch "A question about RMI" New topic
Author

A question about RMI

hua chen
Greenhorn

Joined: Aug 18, 2006
Posts: 8
Hello all,

Each method of a remote interface which extends the interface Remote declares RemoteException in its throws clause. we cannot modify the interface DBMain. So how can we declare RemoteExceptions for each method in interface DBMain? I use the following Algorithm:

public Interface DataRemote extends Remote, DBMain{}

Thank you very much.

Hua
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

Hello hua chen,
So how can we declare RemoteExceptions for each method in interface DBMain

You can not.
So you will need another interface in order to meet RMI requirements.
Anyway, have you wonder about:
is this interface accesible to the client?

Regards, Oricio


SCJP, OCMJD, OCMJEA
 
GeeCON Prague 2014
 
subject: A question about RMI