• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about RMI

 
hua chen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic