0

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?

2
  • What do you mean by sensible option? Commented Jan 7, 2011 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
    Commented Oct 1, 2012 at 8:23

1 Answer 1

1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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