This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Difference between RMI and CORBA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Difference between RMI and CORBA" Watch "Difference between RMI and CORBA" New topic

Difference between RMI and CORBA

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hai to everybody. Actually I know about RMI concepts. But i wanted to know what CORBA is and what is the relationship between RMI and CORBA. I know CORBA will support some other language that JAVA. But other than that what is it use. If you having any example program please provide me or any links.

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

"When they created RMI technology, nodoby knew what to call it. Someone asked James Gosling what to call it, and he said ...Errrr...Uhmmmmm...Eeeyeee.... And the marketing geniuses said "Okay, that's it. We'll call it RMI" "
-Cameron McKenzie, Frome What is WebSphere? Demistifying IBM's Middle Tier Technology

RMI is a technology the was released with Java 1.1 to make JVM to remote JVM calls possible. RMI uses stubs an skeletons, a little RMI server that has its own, sexy little naming type service, and the RMI protocol for marshalling requests back and forth from JVM to JVM.

CORBA is an entire infrastructure, almost like J2EE before the Java Gods created J2EE. Actually, lots of J2EE stuff is just totally stolen from CORBA, er, I mean, based on CORBA. CORBA defines a naming service, transaction service, and even a social housing service. CORBA was very progressive.

Many places have CORBA infrastructures, so, to allow J2EE people to pretend that EJBs might in some crazy world be compatible with CORBA components, they let EJBs be invoked using a protocol that combined all the worst features of RMI and CORBA. This communication protocol disaster is called RMI/IIOP, or Remote Method Invokation over the Internet Inter-Orb Protocol, which was the CORBA protocol. RMI = Java protocol. IIOP = CORBA protocol.

A sample app? Heh....Now that's an interesting challenge.
[ August 27, 2006: Message edited by: Bear Bibeault ]
I agree. Here's the link:
subject: Difference between RMI and CORBA
It's not a secret anymore!