server - Java RMI hierarchical interfaces -


i'm trying write rmi application.

i have following structure: class 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 remotelobby throws remoteexception. methods in ilobby don'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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -