wood burning stoves 2.0*
The moose likes Other Languages and the fly likes Difference between Remote Procedure Call and HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Difference between Remote Procedure Call and HTTP" Watch "Difference between Remote Procedure Call and HTTP" New topic
Author

Difference between Remote Procedure Call and HTTP

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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 .

Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

One uses HTTP the other might not.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

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.

- Chinna
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Joined: Dec 08, 2009
Posts: 174

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

Joined: Apr 18, 2009
Posts: 2234

Thank you very much for clearning my doubt
 
 
subject: Difference between Remote Procedure Call and HTTP