File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
Field Names to the GUI Client
Remote interface for Data class with RMI
NX:about interface design
NX: Interface Patterns (Once more with feeling)
NX:Contractor About RemoteException