server - Java RMI hierarchical interfaces -
i'm trying write rmi application.
i have following structure: 
every method in remotelobby throws remoteexception. methods in ilobby don't.
i following error when compiling:
java.rmi.server.exportexception: remote object implements illegal remote interface; nested exception is:
is possible have interface between class , remote interface?
- ahsous
is possible have interface between class , remote interface?
yes, of course, means extends remote, implies remote itself, means must obey semantics required of remote interfaces.
every method in
remotelobbythrowsremoteexception.methods inilobbydon't.
and semantics of remote interfaces methods must declared throw remoteexception or 1 of superclasses. have adjust methods in ilobby. in case make ilobby extend remote directly, inheritance, make clear.
Comments
Post a Comment