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

1,564 Comments

  1. Larrydaw Larrydaw

    Особую опасность представляет белая горячка (алкогольный психоз). У пациента возникают галлюцинации, приступы паники, агрессивное поведение, дезориентация во времени и пространстве. Это состояние требует незамедлительного вмешательства врача, так как человек может представлять опасность для себя и окружающих.
    Получить дополнительные сведения – нарколог на дом срочно

  2. Danielwhads Danielwhads

    Наркологическая клиника «Южный МедКонтроль» объединяет современные медицинские технологии, опыт специалистов и уважительное отношение к каждому пациенту. Здесь создаются условия для безопасного и результативного лечения зависимостей любой сложности — от алкогольной до полинаркотической. Центр работает в круглосуточном режиме, предлагая выезд врачей на дом, детоксикацию, кодирование и длительные программы реабилитации. Основная цель специалистов — восстановление физического и психологического равновесия человека, возвращение способности к полноценной жизни без зависимости.
    Углубиться в тему – наркологическая клиника клиника помощь

  3. http://andabogados.es/
    La empresa Andabogados es una agencia especializada con presencia en el tejido empresarial espanol, que ofrece un acompanamiento profesional a quienes buscan resultados, priorizando en la confianza y la transparencia. Conoce mas a traves del enlace.

  4. An interesting discussion is definitely worth comment.
    I do think that you need to publish more about this topic, it
    may not be a taboo matter but usually folks don’t talk about these
    issues. To the next! Best wishes!!

  5. GichardDulge GichardDulge

    Thank you a lot for sharing this with all people you really recognise what you are talking about! Bookmarked. Kindly additionally talk over with my website =). We will have a hyperlink change agreement between us
    บาคาร่า

  6. Sidneytomia Sidneytomia

    Миссия нашей клиники заключается в оказании высококачественной помощи людям, страдающим от зависимостей. Мы стремимся создать безопасное и поддерживающее пространство для лечения, где каждый пациент получает необходимую поддержку и понимание. Наша задача — не только помочь избавиться от зависимости, но и вернуть полноценную жизнедеятельность человека, восстановив его социальные связи и жизненные ориентиры.
    Подробнее можно узнать тут – [url=https://kapelnica-ot-zapoya-irkutsk2.ru/]вызвать капельницу от запоя на дому[/url]

  7. LewisJonus LewisJonus

    Hi there I am so delighted I found your blog page, I really found you by mistake, while I was searching on Askjeeve for something else, Nonetheless I am here now and would just like to say thanks for a marvelous post and a all round entertaining blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the awesome jo.

    https://www.google.lv/maps/d/edit?mid=1LeIkCzNWnoHd-Hr6boUAo2q31wakYRk

Leave a Reply

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