Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

share|improve this question
    
What do you mean by sensible option? –  Kugathasan Abimaran 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
add comment

1 Answer

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.

share|improve this answer
    
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) –  ratchet freak Apr 4 '12 at 7:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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