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

990 Comments

  1. MelvinKnone MelvinKnone

    Программы лечения формируются с учётом состояния организма и индивидуальных потребностей пациента. Это обеспечивает эффективность и снижает вероятность рецидива.
    Детальнее – наркологическая клиника в донце

  2. https://888starz.net.co/
    888Starz Colombia es un casino en linea y casa de apuestas deportivas que cuenta con mas de 9.500 juegos disponibles, incluyendo tragamonedas, mesas con crupier en vivo y una amplia oferta de deportes que abarca desde la Liga BetPlay hasta la UEFA Champions League y las competiciones de esports.

  3. https://ufc327odds.com/
    The upcoming UFC 327 light heavyweight championship bout in Miami presents a classic pick’em for those placing wagers, as ex-champion Jiri Prochazka (-142) and on-a-roll knockout artist Carlos Ulberg (+120) gear up to square off for the unclaimed belt. The extremely close odds highlight how evenly matched these two finishers really are, setting up a matchup where a wager on either competitor is simply a matter of which devastating skillset you anticipate will reign supreme.

  4. https://sportium.net.co/
    A plataforma Sportium Colombia trata-se de um cassino e site de apostas esportivas digitais que funciona com plena legalidade amparado pela licenca da Coljuegos, resultado da alianca entre CIRSA e Ladbrokes desde 2007. Oferece um ambiente completo e seguro no qual os apostadores colombianos podem aproveitar desde palpites no futebol ate slots e cassino em tempo real com dealers reais, tudo em um unico lugar.

  5. https://miamifightcard.com/
    Regarding MediaFightCard’s lineup, the gambling markets reveal a notable dynamic with belt-holders being the betting underdogs and challengers holding favorite status. In the main event for the vacant light heavyweight title, ex-titleholder Jiri Prochazka started as a slight -143 favorite over the in-form Carlos Ulberg, who comes in as a +116 underdog even with his nine-fight winning streak.

  6. https://miamifightcard.com/
    Regarding MediaFightCard’s lineup, the betting odds showcase a notable dynamic with titleholders entering as underdogs and aspirants carrying favorite status. In the featured bout for the unclaimed light heavyweight title, previous belt-holder Jiri Prochazka started as a narrow -143 favorite over the fast-rising Carlos Ulberg, who comes in as a +116 underdog considering his nine-fight winning streak.

  7. Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is wonderful, let alone the content!

Leave a Reply

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