Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Remote Procedure Call and HTTP

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I dont understand what is meant by Remote Procedure call
I have gone through its definations , but i cannot find ay difference between a Remote Procedure call and a HTTP

(As per web it says this
(Remote procedure call (RPC) is an Inter-process communication technology that allows a computer program to cause a subroutine or procedure to execute in another address space without the programmer explicitly coding the details for this remote interaction.)


Please tell me how this is different from a Http call ??
Thank you .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One uses HTTP the other might not.
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aim of both RPC and HTTP is same.. execute some code @ server side..

We can use different mechanism to acheive.. RPC..

Use either Java RMI / XML RPC /CORBA .. and so on.

But HTTP is a standard protocol which will invoke a particular resource on the server.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to confirm one thing on this .

If we call a SessionBean or some RemoteObject (normal java class) from my Swing application , will that be treated as a Remote Procedure call??

Please share your ideas .
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say.. YES.

Actually EJB Components are invoked using RMI-IIOP.. again a flavour of RPC.

http://java.sun.com/products/rmi-iiop/
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for clearning my doubt
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic