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

3,955 Comments

  1. I’ve been punting on Tenobet since about the spring, and I suppose I have a fair bit of history to actually comment. Found it through a mate who was chasing something with proper slot coverage without all the affordability nonsense you run into now on the regulated UK ones. Should flag early: it’s not UKGC licensed and it isn’t on the GamStop scheme, and that will matter to some of you a lot.

    The lobby is genuinely big — about 3,000+ games last I looked, and the names you’d want all turn up: Pragmatic, Net Ent, Play’n GO, Big Time Gaming, Betsoft, Microgaming’s back catalogue. Personally I grind Sweet Bonanza plus Sweet Bonanza, both load quick on mobile browser. Live side is all Evolution, so you know what you’re getting — actual dealers, the game shows like Crazy Time when I fancy a punt on something daft. Sports betting’s bolted on as well, and it I’ve used a handful of times on the football, it’s fine, nothing more.

    On the sign-up offer it’s 100% up to ?125 with 100 spins thrown in, you’ll want the code JOIN002 at deposit or it won’t trigger. Check the playthrough first, the requirement is not amazing but not predatory to be honest. There’s no no-deposit bonus that I could find. To check what’s running currently, you’ll find them over on https://solvecovid19.net before you sign up. Minimum deposit is ?10, signing up took maybe two minutes.

    Cashouts have been generally fine in my experience. Cards work, e-wallets like Skrill and Neteller are supported, and crypto if you prefer. My Skrill cashouts have come through in under 24 hours; cards were slower, 3-4 days. My main gripe was KYC — took about two days to clear my documents, which held up the first payout sat waiting until that cleared. Not dodgy, just a bit of a wait.

    Couple of niggles: there’s no app, so you’re on the mobile site. Works fine on my iPhone though I do miss having one. The login is occasionally fiddly around weekend evenings. Customer service at Tenobet is English-speaking and reasonably quick, but the first replies read like templates. Push past that and someone competent turns up.

Leave a Reply

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