What is a code point in Java RMI?

I am currently studying RMI.

I really don't understand the concept of a codebase. Each article I read suggests that the client that calls the Remote object can load method definitions from the code base. The problem is that I don't need descriptions / interfaces in my classpath? How can I call methods on a remote object if I only know them at runtime? It does not even compile.

Am I really not lost here? What is a code base point? There seems to be a lot of extra work and requirements to provide a codebase

thank

+3
source share
1 answer

, , , . , , , , , .

, , .

, RMI

public interface MiddleEarth {
     public List<Creature> getAllCreatures();
}

MiddleEarth Creature, .

Creature Elf, Man, Dwarf Hobbit. , .

RMI , , Creature, .

, , . , . . .

, , Creature (.. Ent), .

, , , , , creaturesImpl.jar .

+7

All Articles