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.
"JavaRanch, where the deer and the Certified play" - David O'Meara
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!!
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).]