File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI Conversations Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "RMI Conversations" Watch "RMI Conversations" New topic
Author

RMI Conversations

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
hi all
I have read RMI uses its own protocols for request and response Conversation between server and client.I could not understand the difference between HTTP and the RMI protocols .
Please let me know
How does RMI protocols sends request....?
How does it differ from HTTP request response?
thanks in advance
Vikas


Thanks
Vikas Sharma
SCJP(1.4)
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
Hi vikasids sharma !
RMI is a distributed object computing mechanism. RMI is object-oriented while HTTP is not.RMI is java-to-java communication mechanism. HTTP is not specific to any language.HTTP as the name implies is a hyper-text transfer mechanism and is stateless.
HTTP uses TCP/IP for communication.
Bydefault RMI uses TCP.But one can change the protocol using factory methods.
RMI uses stubs and skeletons to communicate between different machines and RMI registry for name resolution.HTTP uses DNS for name resolution.
vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
Thanks Muthty
Can we say HTTP protocol is not used at all in RMI and as we say EJB uses
RMI paradigm of request and response.So in EJB also we dont use HTTP at all when our remote client makes a call at server .
please correct me if i m wrong
Originally posted by Murthy Narasimha:
Hi vikasids sharma !
RMI is a distributed object computing mechanism. RMI is object-oriented while HTTP is not.RMI is java-to-java communication mechanism. HTTP is not specific to any language.HTTP as the name implies is a hyper-text transfer mechanism and is stateless.
HTTP uses TCP/IP for communication.
Bydefault RMI uses TCP.But one can change the protocol using factory methods.
RMI uses stubs and skeletons to communicate between different machines and RMI registry for name resolution.HTTP uses DNS for name resolution.
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
Originally posted by vikasids sharma:

Can we say HTTP protocol is not used at all in RMI and as we say EJB uses
RMI paradigm of request and response.So in EJB also we dont use HTTP at all when our remote client makes a call at server .

Yes, HTTP does not come into picture of RMI. And EJBs use RMI over IIOP (Internet inter-object protocol)
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8876

Where RMI IIOP port is blocked then HTTP tunneling can be made use of.


Groovy
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: RMI Conversations
 
Similar Threads
Difference b/w Application server and web server
where does a servlet engine reside?
HTTP Tunnelling?
Real world example of RMI
keeping http clients up to date