File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Polymorphism and RMI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Polymorphism and RMI?" Watch "Polymorphism and RMI?" New topic

Polymorphism and RMI?

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 116
This is probably a dumb question ...
Is it possible to use Polymorphism with RMI?
For example:
B extends A
aMethod(A a)
I want to call aMethod(A a) with an instance of B over RMI.
Is this possible?


Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

Any call you can do locally, you can do remotely.

Ed's latest article: A Java Reactive Generator
I agree. Here's the link:
subject: Polymorphism and RMI?
It's not a secret anymore!