File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A question about RMI
 
Similar Threads
NX: Interface Patterns (Once more with feeling)
Remote interface for Data class with RMI
NX:about interface design
NX:Contractor About RemoteException
Field Names to the GUI Client