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,403 Comments

  1. يقدم الموقع تصميمًا عربيًا واضحًا وقائمة تدعم أكثر من خمسين لغة.
    تضم غرف اللعب المباشر ما يزيد عن 250 طاولة يديرها موزعون فعليون.
    تتغير الأودز في الوقت الفعلي مع إمكانية الرهان الحي ومتابعة النتائج.
    تُضاف إلى ذلك عروض منتظمة من كاش باك ورهانات مجانية وبطولات دورية.
    يمكن فتح حساب جديد عبر الهاتف أو البريد الإلكتروني في دقائق.
    888 stars 888 starz

  2. I will right away seize your rss as I can’t in finding your email subscription hyperlink or newsletter service. Do you’ve any? Kindly let me recognize in order that I could subscribe. Thanks.

  3. juegos gratis tragamonedas casino europa

    Feel free to surf to my web-site; casinos con bonos de cumpleaños (Zack)

  4. May I simply say what a relief to discover someone that actually understands what they are talking about online. You actually understand how to bring a problem to light and make it important. More and more people ought to check this out and understand this side of the story. It’s surprising you’re not more popular given that you most certainly possess the gift.

  5. Alberttwits Alberttwits

    звоните круглосуточно по телефону горячей линии клиники: наши специалисты готовы оказать необходимую помощь в решении проблемы алкогольной зависимости.
    Исследовать вопрос подробнее – https://vyvod-is-zapoya-sochi22.ru/

  6. best real money casino united kingdom, new zealand poker players and best australian isle of capri casino
    lake charles broke loose – Lynne – sign up bonus, or online
    slots no deposit bonus usa

  7. 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.

  8. At this time it appears like BlogEngine is the top blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog?

  9. 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.

  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.

Leave a Reply

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