Skip to content

An example of use of CORBA

Hello

CORBA (Common Object Request Broker Architecture) is a standart defined by OMG (Object Management Group), this let distributed object from different languages and OS to communicate. It also provides total transparency in the communication. The IDL (Interface Definition Language) is the tecnology used to describe the interfaces. IDL has your own data types, that are mapped to the data types in other languages. There is an IDL compiler, it generates the codes that do the communication.

But how it works? We have some definitions in a .idl file, in this case Bank-idl (remember to change the filename).

Acessing the files, you will see a lot of definitions like:

Module definition:

module banco {

Definition of data type valor as double

typedef double valor;

Definition of the transacao struct

struct transacao {
unsigned long data; // Formato: ddmmyyyy
string<12> descricao;
valor quantia;
};

Definition of some methos, vars and exceptions

interface auto_atendimento {
readonly attribute string boas_vindas;
valor saldo ( in conta c )
raises ( conta_inval );
void extrato ( in conta c,
out transacoes t, out valor saldo )
raises ( conta_inval );
void transferencia ( in conta origem,
in conta destino, in valor v )
raises ( conta_inval, saldo_insuf );
void investimento ( in conta c,
in aplicacao apl, in valor v )
raises ( conta_inval, saldo_insuf );
};

With this file you can generate a lot of different interfaces compiled to different languages. To generate the interfaces in Java use:

idlj -fall bank.idl

It will generate many files inside a banco folder, with the .java files. Now you just have to code what each method will do.

Example of implementation of a bank service and a client in Java using CORBA and IDL

Matheus

PS: This is just a introduction to CORBA. It uses a lot of other definitions as Object Management Architecture and others

References:
My Professor Frank page.
http://en.wikipedia.org/wiki/Common_Object_Request_Broker_Architecture

Published injava

2,499 Comments

  1. real money united statesn online casino, slots ironman lausaarote and good morning united states time slot, or united statesn heritage poker
    table

    my web-site – craps don’t pass payouts (Rory)

  2. hello there and thank you for your info – I have definitely picked up anything new from
    right here. I did however expertise a few technical points using this website, as I experienced to reload the site
    lots of times previous to I could get it to load properly.

    I had been wondering if your hosting is OK? Not that
    I’m complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your quality
    score if advertising and marketing with Adwords.
    Well I’m adding this RSS to my e-mail and could look out for much more of your respective intriguing content.
    Ensure that you update this again very soon.

  3. Right now it looks like BlogEngine is the best blogging platform out there right now. (from what I’ve read) Is that what you’re using on your blog?

  4. May I simply say what a relief to find somebody that actually understands what they’re discussing on the web. You definitely realize how to bring an issue to light and make it important. More people really need to check this out and understand this side of the story. I was surprised you’re not more popular because you most certainly have the gift.

  5. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  6. I’m impressed, I need to say. Really rarely do I encounter a blog that’s both educational and entertaining, and let me tell you, you have hit the nail on the head.

  7. A good web site with interesting content, that’s what I need. Thank you for making this web site, and I will be visiting again. Do you do newsletters? I Can’t find it.

  8. Surprisingly good post. I really found your primary webpage and additionally wanted to suggest that have essentially enjoyed searching your website blog posts. Whatever the case I’ll always be subscribing to your entire supply and I hope you jot down ever again soon!

  9. Aw, this was a really good post. Taking a few minutes and actual effort to make a top notch article… but what can I say… I hesitate a whole lot and don’t seem to get anything done.

  10. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  11. joker online casino canada, online san ysabel casino (Margie) no deposit bonus free spins
    usa and free bingo australia, or top online pokies and casinos canadian free games

  12. At this time it appears like Drupal is the best blogging platform out there right now. (from what I’ve read) Is that what you are using on your blog?

  13. Currently it seems like Drupal is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog?

  14. Aw, this was a really good post. Taking the time and actual effort to make a really good article… but what can I say… I hesitate a whole lot and don’t seem to get nearly anything done.

  15. Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say superb blog!

  16. Hi there, You’ve performed a fantastic job. I’ll certainly digg it and in my opinion recommend to my friends. I am sure they’ll be benefited from this site.

Leave a Reply

Your email address will not be published. Required fields are marked *