user2953119
user2953119

Reputation:

When rmi compiler creates stub classfile

In the rmi getting started tutorial written that instance which inherited from RemoteStub creates by rmi compiler. I don't understand, what is it? When rmi compiler is started? Is true that rmic started just after javac is started? I dont understand why for stub objects need its own compiler?

Upvotes: 0

Views: 90

Answers (1)

Ian Roberts
Ian Roberts

Reputation: 122364

That must be an old tutorial. As of Java 5 it is not necessary to run rmic at all as the RMI mechanism can use a dynamic proxy to do the job that was formerly done by the rmic-generated stub.

Upvotes: 2

Related Questions