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

  1. First impressions: the true casino brand known as true fortune is a modern online casino that has steadily gained a following across the UK. Built around its flagship platform at true-fortune.com, the site markets itself as a one-stop home for casino entertainment. Some players know it as truefortune or true-fortune casino, the overall package caters to anyone wanting a polished and safe GB-oriented experience.

    On the game catalogue, the site offers an impressively deep range — expect 3,000 to 5,000+ slots and tables. Big-name studios such as Pragmatic Play, NetEnt and Play’n GO sit behind the selection, which means high-RTP slots, bonus-buy features and blockbuster releases. RTP figures routinely climb into six figures, helping keep things interesting.

    Live dealer play is a real highlight. Streamed via Evolution and Pragmatic Play Live, you can sit down at authentic dealer tables around the clock. Human croupiers deal in real time live on camera, and popular entertainment titles like Crazy Time and Lightning Roulette top off the offering. The result is as immersive as online play gets.

    On the promotions front, the operator keeps things generous. Fresh sign-ups are welcomed by a matched bonus of ?500 and 200 free spins, while regulars enjoy a no deposit bonus to start with. Loyalty perks and reloads and a tiered VIP scheme reward loyalty, so it’s smart to reviewing the playthrough terms on each promo. Players can find out more on true fortune no deposit bonus, updated regularly.

    For deposits and cashouts, the site handles plenty of payment methods — Visa and Mastercard, Skrill and Neteller, and even Bitcoin. Getting started is refreshingly fast, with a modest entry point around ?10, while cashouts are processed swiftly.

    In summary, this operator is supported by round-the-clock customer support, a slick mobile app for iOS and Android, and solid regulation and SSL encryption. For UK players after a trustworthy, feature-rich home, this one is firmly on the shortlist.

Leave a Reply

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