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

133 Comments

  1. Experience Iron Flame’s thrilling dragon world! Violet Sorrengail battles enemies and her heart in this explosive sequel. Dragons soar, loyalties shatter. Get the full PDF free at ironflamepdf.top – instant, easy access for all fans! https://ironflamepdf.top/ Synopsis Of Iron Flame

  2. The allure of the unknown is powerful in this novel. An Arcane Inheritance draws you in from the first chapter, especially in PDF format. This digital edition is perfect for late-night reading. Grab your copy and discover the secrets that have been hidden for generations. https://anarcaneinheritancepdf.top/ Download An Arcane Inheritance Full Text

  3. Sometimes you just need a short and sweet story to brighten your day. An archive of romance often includes novellas and short stories alongside full novels. I download these quick reads in PDF format to fill the small gaps in my schedule, like waiting for an appointment or riding the bus. https://anarchiveofromancepdf.top/ An Archive Of Romance Pdf Oceanofpdf

  4. Eine gültige Lizenz gewährleistet, dass das Casino reguliert
    ist und faire Spielbedingungen bietet. Dafür muss man in den meisten Fällen eine alternative
    Auszahlungsmethode im Casino auswählen. Online Casinos, die
    Paysafecard als Zahlungsmethode anbieten, sind bei Spielern beliebt, die Wert auf
    Anonymität und Sicherheit legen. Von diesem Konto aus
    lassen sich problemlos, schnell und sicher Casinokonten aufladen oder Zahlungen in Online Shops
    tätigen. Das Guthaben erscheint dann direkt im Guthabenkonto und
    kann von dort aus eingesetzt werden. Wer die Zettel auf seinem Computertisch sammelt, hat
    später richtig große Mühe, die bereits verwendeten PINs auszusortieren und
    Bons mit Restguthaben herauszufiltern.
    Außerdem fallen Gebühren an, wenn wir Guthaben von diesem
    Konto auf unser Bankkonto umschichten wollen. Doch die Überweisung von diesem
    Konto zum Bankkonto verursacht Gebühren. Im Online Casinos ohne Paysafecard Konto spielen ist möglich.
    Wir nennen die wichtigsten Vorteile der Paysafecard im Spielcasino.
    Dadurch stellen wir sicher, dass die Bewertungen authentisch, nachvollziehbar
    und vollständig transparent sind. Ja, Paysafecard gilt als eine
    der sichersten Zahlungsoptionen, da keine sensiblen Bank- oder
    Kreditkartendaten eingegeben werden müssen.
    Wer Online Casinos mit Paysafecard als Echtgeld-Einzahlungsmethode verwenden will, muss sich zunächst in einer der Verkaufsstellen eine 16-stellige
    Pin kaufen. Die Bezahlmethode ist einfach, schnell und besonders sicher.

    Bis 1000 € Bonus + 600 Freispiele + Geheimbonus

    References:
    https://online-spielhallen.de/tipico-casino-login-ihr-einfacher-zugang-zur-casinowelt/

  5. Stay ahead in the competitive gold market with the Bluebird Gold PDF. This detailed guide offers professional analysis and strategic insights for every serious investor. Download this guide now to enhance your market understanding and achieve much greater financial success in trading. https://bluebirdgoldpdf.site/ Bluebird Gold Pdf Free Download

  6. The aroma of spices and the reality of teen parenthood blend seamlessly in this masterpiece. Grab your PDF copy today to understand why critics rave about Acevedo’s writing. It is a tale that keeps the fire on high, proving that talent can shine even in the toughest circumstances. https://withthefireonhighpdf.site/ With The Fire On High Ebook

  7. Enhance your digital reading list with the Is This a Cry for Help PDF, a file designed for clarity and ease of use. You no longer need to wait for shipping when you can have the electronic version instantly. Dive deep into the characters and plot immediately after downloading. https://isthisacryforhelppdf.site/ Is This A Cry For Help Box.com

  8. Your quest for the Is This a Cry for Help PDF ends with our reliable download service designed for book lovers. We provide a virus-free and complete file that lets you enjoy the story without interruptions. turning the digital pages of this novel is just a click away for you. https://isthisacryforhelppdf.site/ Is This A Cry For Help Calameo

Leave a Reply

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