Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Corba Intro  RSS feed

 
VishnuKumar Prasad
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is corba? for what it is used and give the useful link for materials?
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CORBA is the Common Object Request Broker Architecture.
The main standards body is located at http://www.omg.org.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CORBA is just a standard. There are various tools that implement the standard.
Corba is used much for the same reason RMI is. If you have pieces of your application scattered amongst the client, server, Database server etc. and you need to pass infomation around, you are going to pass it as objects. An object brokering tool provides a way to pass these objects without having close links with the code. This allows you to decide to replace you Access Database with Oracle (or whatever) without changing any java code. All you do is update the Corba tool with the new database information and life is good. The same with the other pieces of the application.
 
ankush walia
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CORBA(Common Object Request Broker Architecture)
+++++++++++++++++++++++++++++++++++++++++++
Java IDL(Interface Definition Language) is a technology for ditributed objects(i.e. objects interacting on different platforms across a network)!!Similar to RMI but enables objects to interact regardless of whether they are written entirely in JAVA programming language or any other language!!
This is possible because Java IDL is based on CORBA!!Each language that supports CORBA has it's own IDL mapping!!
In java for this purpose IDL makes use of "idltojava" compiler which can be downloaded from "java.sun.com/jdc" well.......
u would now ask what this "idltojava" compiler do??here's a simple answer to this in form of a diagram!!
IDL interface
|
| (arrow)
V
idltojava compiler
|
| (arrow)
V
equivalent Interfaces classes& methods in JAVA
so this compiler converts the language independent interface into the syntax of the other language to which we are converting(in our case JAVA)!!here's an example to show how this conversion takes place to clear up everything!!

"idltojava" compiler
Hello.idl ----------------------> Hello.java
Hello.idl
=========
module HelloApp{
interface Hello
{ String sayHello();
};
};

Hello.java
==========
package HelloApp;
public interface Hello
extends org.omg.Corba.Object{
String sayHello();
}

from the above example it is clear that using the compiler following changes took place-->
#The Hello.idl file changed to Hello.java
#CORBA module(which acts as a container for interfaces and declarations like package in Java) was converted to equivalent form in Java(package)
#Interface is converted to public interface in Java but it extends from an object there!!This is because all CORBA objects are derived from org.omg.CORBA.Object to ensure required CORBA functionality!!
#The string function is converted to equivalent in java i.e. String!!
Actually the compiler creates a directory called HelloApp which contains 5 files that are built after compilation of .idl file!!if u want to know more about these five files do write back!!I hope all u'r doubt's about CORBA must be clear by now!!but if u still have any doubts,u r most welcome to ask further questions!!
<----- SKY_IS_THE_LIMIT -----> ankush!!
[This message has been edited by ankush walia (edited January 29, 2001).]
[This message has been edited by ankush walia (edited January 29, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!