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

  1. Ronaldhoano Ronaldhoano

    Программа лечения формируется после осмотра и может включать несколько этапов. Их количество и продолжительность зависят от клинической ситуации, физической зависимости, психического состояния и результатов предыдущего лечения. Врач может изменить план, если самочувствие меняется или требуется более интенсивная терапия.
    Подробнее – 2narkologicheskaya-klinika-balashiha.ru/

  2. no deposit bingo bonus usa, jackpot mania dafu casino free coins (Glen) nsw
    united states and how to hack canadian pokies, or united
    statesn casino guide coupons

  3. united kingdom online slots doral casino (Manuel), online
    slots usa fast withdrawal and united statesn casinos no deposit bonus, or
    bingo uk online

  4. best canadian grand falls casino free play (Janie) sites,
    best usa poker rooms and best online casino canada no deposit bonus, or best casino bonuses no deposit uk

  5. top bingo site uk, golden tiger casino uk and new zealandn online
    pokies for real money, or best online pokies new zealand
    ip casino biloxi entertainment calendar, Rozella,

  6. Georgekam Georgekam

    Каждый пациент проходит несколько последовательных этапов, направленных на очищение организма, стабилизацию эмоционального состояния и формирование стойкой мотивации к трезвой жизни. Такой подход позволяет не только устранить физическую зависимость, но и укрепить психическую устойчивость.
    Получить больше информации – https://narkologicheskaya-klinika-v-samare16.ru/chastnaya-narkologicheskaya-klinika-samara

  7. My coder is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using WordPress on numerous websites for about a year and am nervous about switching to another platform. I have heard great things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any help would be really appreciated!

  8. Daviddet Daviddet

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

  9. Hi, I just hopped over to your web-site through StumbleUpon. Not somthing I might typically browse, but I liked your views none the less. Thanks for making something worthy of reading through.

  10. I’m so happy to read this. This is the type of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this best doc.

  11. RobertMob RobertMob

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

  12. mobile slots no deposit bonus usa, canadian pokie machines for
    sale and roulette online united states, or free online games make real money [Therese] casino chips usa

  13. AaronBrals AaronBrals

    Вывод из запоя дома возможен не всегда. Если человек пьет несколько дней, резко ослаб, перестал нормально спать, жалуется на боль в груди, сильную головную боль, галлюцинации или неадекватное поведение, врач должен проверить тяжесть абстинентного синдрома. Особого внимания требуют пожилые люди, пациенты с болезнями сердца, сосудов, печени, почек и желудка, а также те, у кого ранее были судороги, делирий, инфаркт или инсульт. В такой момент стационарная помощь может быть безопаснее попытки вывести человека на дому.
    Изучить вопрос подробнее – вывод из запоя с выездом

Leave a Reply

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