This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 114
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!