GionJh
GionJh

Reputation: 2884

RMI stubs and sublcassing

I know stubs in RMI are deprecated but I would like to clear a doubt I have about them:

Suppose I have a class A that implements RemoteObject and a class B wich extends A, does a client class, on a remote machine, that wants to use a remote object of type B need both of the stubs for A and B ?

Upvotes: 1

Views: 59

Answers (1)

user207421
user207421

Reputation: 310850

  1. They aren't deprecated.
  2. No, you only need the stub corresponding to the actual object that you're using remotely.

Upvotes: 1

Related Questions