Question: Why might RMI be a sensible option for communication between client and server in a web application?

So why would RMI be used for communication between client and server in web apps?

  • What do you mean by sensible option? Jan 7 '11 at 16:00
  • 1
    The format of the question suggests this may come from a book, and is probably quite outdated. My best guess would be that it's referring to the client being a Java applet, which was sort-of in fashion in the late 90s. In that context, it would make a lot more sense than it does now.
    – Daniel B
    Oct 1 '12 at 8:23

It's not.

RMI is a binary protocol for serializing and sending Java objects between two end-points and you really need those end-points to be JVM's for that to work.

With "web applications" I assume you mean html+http+javascript which would be incredible hard (if at all possible) to use with RMI.

  • And the end-points need to be compatible JVM's even.
    – user1249
    Jan 8 '11 at 18:29
  • and the end points also need compatible code (or enough security clearance to download&execute code) Apr 4 '12 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.