This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "A question about RMI" Watch "A question about RMI" New topic

A question about RMI

hua chen

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.

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

I agree. Here's the link:
subject: A question about RMI
jQuery in Action, 3rd edition