• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Conversations

 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Idly Vada
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where RMI IIOP port is blocked then HTTP tunneling can be made use of.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!