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

4,095 Comments

  1. Wow that was unusual. I just wrote an very long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say excellent blog!

  2. sr sr

    Решил недавно съездить в Таиланд и стал изучать, как оформить визу. Оказалось, что для россиян есть несколько вариантов — действует безвизовый въезд. Конечно, всё зависит от цели поездки и её продолжительности. На сайте thailandtouristvisa.net/ru/ нашёл подробную инструкцию, как всё правильно сделать. Там всё понятно расписано, какие документы нужны и куда их подавать. Кстати, если поехать на короткий срок, то виза может вообще не понадобиться. По теме https://thailandtouristvisa.net/ru/ советую заранее уточнить все детали, чтобы не было проблем на границе. Кстати, на thailandtouristvisa.net есть актуальная информация по визам на 2026 год, так что можно планировать поездку заранее. В общем, всё реально оформить без лишних хлопот, главное — внимательно изучить требования.

  3. GeorgeHof GeorgeHof

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

  4. BrentTab BrentTab

    В этой заметке мы представляем шаги, которые помогут в процессе преодоления зависимостей. Рассматриваются стратегии поддержки и чек-листы для тех, кто хочет сделать первый шаг к выздоровлению. Наша цель — вдохновить читателей на положительные изменения и поддержать их в трудных моментах.
    Полезно знать – Южный Нарколог

  5. Right now it appears like Movable Type is the best blogging platform out there right now. (from what I’ve read) Is that what you’re using on your blog?

  6. RobertGreta RobertGreta

    В этой статье мы обсудим процесс восстановления после зависимостей, акцентируя внимание на различных методах и подходах к реабилитации. Читатели узнают, как создать план выздоровления и использовать полезные ресурсы для достижения устойчивых изменений.
    Узнать из первых рук – Лечение деменции в Сочи

  7. Robertmug Robertmug

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

  8. Very great post. I just stumbled upon your blog and wished to say that I have really loved surfing around your weblog posts. After all I will be subscribing for your feed and I hope you write once more soon!

  9. Been using Tenobet for maybe four months now, mostly weekends, usually spins during the week and a bit of football betting on Saturdays. Honestly, I got there via someone on another thread mentioned it, so my expectations weren’t massive.\n\nThe slots side is genuinely big — somewhere around 3,000 titles if you count everything. All the big studios are in: Pragmatic Play, NetEnt, Microgaming, Yggdrasil. My go-tos are Sweet Bonanza and Book of Dead, although the Megaways stuff is where I lose the most. The live dealer rooms are Evolution, which is what you want — actual dealers, blackjack tables at all hours, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer with Tenobet goes to ?125 plus a chunk of free spins, the playthrough is 30x , so nothing scandalous but read it properly. There’s no no deposit thing as far as I could see, min deposit was ?10 minimum. To check what’s live right now they’re listed on tenobet reviews since these change. My gripe: the spin credits vanish quick and I wasted a load.\n\nCashouts have been fine. E-wallet took under 24 hours for me, Visa took closer to three days, which is normal for UK banking. Tenobet also takes Neteller, Visa and some crypto options, though I haven’t bothered with Bitcoin. The ID check was painless enough — driving licence and a bank statement, sorted same evening.\n\nThere’s no standalone app that I found, it’s the mobile site which honestly works — I use it more than desktop now. Live chat on Tenobet answered in about five minutes both times, actual person, decent English. Licensed and regulated for UK players, which is why I stuck around.

  10. One thing is always that one of the most popular incentives for making use of your credit cards is a cash-back as well as rebate present. Generally, you’ll have access to 1-5 back for various buying. Depending on the credit cards, you may get 1 back again on most expenses, and 5 again on purchases made using convenience stores, filling stations, grocery stores along with ‘member merchants’.

  11. Allora, premessa — bazzico su Crazy Time da un paio d’anni, senza grandi pretese, e la cosa che mi ha preso di piu non e tanto la ruota in se ma il contorno. Due righe per chi arriva ora: e un live game show firmato Evolution, 54 settori sulla ruota dove trovi 1, 2, 5, 10 e i quattro bonus: Coin Flip, Cash Hunt, Pachinko e il bonus che da il nome al gioco. E sopra ci sta Top Slot, che abbina moltiplicatore e settore.

    Quello che faccio io e tenere aperta una pagina di statistiche prima di guardo il tavolo. Tipo l’elenco delle ultime uscite, i ritardi dei bonus, la distribuzione dei settori sull’ultimo centinaio. Pero, e lo scrivo perche all’inizio ci credevo: quei numeri non ti dicono niente sul prossimo spin. Ogni spin e a se, il ritorno teorico gira sul 95-96% in base al settore e basta. Se Pachinko non esce da 80 giri non significa che e “carico” — e la fallacia del giocatore, pura e semplice.

    Quindi a che serve? Boh, onestamente per disciplina mia, non per previsioni: mi aiuta a capire quanto sto giocando e capisco quando e ora di chiudere. Se vi interessa vedere come si impostano quei dati, io mi appoggio a zona-bellezza.com che tiene lo storico aggiornato senza fronzoli. Prendetelo come uno strumento di lettura, non come una formula.

    Le bonus game secondo me sono il vero cuore della cosa. Cash Hunt con i 108 moltiplicatori coperti e un casino totale e li il fattore fortuna e assoluto, Pachinko ha quel DOUBLE che puo allungare la giocata, Coin Flip e secca, due facce e via. Il lato che mi pesa sono i tempi morti: tra un giro e l’altro passa tanto tempo e in mobile, con la connessione dei treni italiani, ti perde il video a meta bonus. A me e capitato piu di una volta e da fastidio.

    Cosa che ripeto sempre: giocate solo su operatori con licenza ADM. In Italia il tavolo live di Crazy Time e sempre quello di Evolution, ma il discorso cambia su chi ti tiene i soldi. Ho visto gente finire su siti.com senza concessione e poi lamentarsi che non li pagano. Il dealer e una persona vera e la ruota e fisica, su questo nulla da dire, pero il banco mantiene il suo vantaggio sempre. Puntate cifre piccole, segnatevi quanto spendete, e se le statistiche vi stanno facendo inseguire un bonus, chiudete la pagina.

  12. Non so quanti di voi — bazzico su Crazy Time da tipo un anno e mezzo, senza grandi pretese, e la cosa che mi ha preso di piu non e il giro della ruota ma il contorno. Per chi non lo conosce: e un live game show firmato Evolution, 54 settori sulla ruota con 1, 2, 5, 10 piu i quattro bonus: Coin Flip, Cash Hunt, Pachinko e il Crazy Time vero e proprio. Sopra c’e Top Slot, che e quella che puo raddoppiare o moltiplicare il settore.

    La mia abitudine e tenere aperta una pagina di statistiche prima di gioco. Cose tipo le ultime uscite, quanti spin manca un bonus, quante volte e girato il 10 nelle ultime cento mani. E qui pero, e lo scrivo perche all’inizio ci credevo: lo storico non predice nulla. La ruota non ha memoria, il ritorno teorico gira sul 95-96% in base al settore e basta. Se Pachinko non esce da 80 giri non significa che e “carico” — quella e la classica trappola mentale.

    Quindi a che serve? Boh, onestamente per disciplina mia, non per previsioni: mi aiuta a capire quanto sto giocando e a staccare quando e il momento. Se volete farvi un’idea di come si leggono queste tabelle, io mi appoggio a storico crazy dove trovo cronologia e ritardi in ordine senza troppi fronzoli. Vedetelo come un diario, non come un oracolo, non come una formula.

    I quattro bonus secondo me sono il vero cuore della cosa. Cash Hunt dove spari al bersaglio e un casino totale e la scelta della casella e puro caso, Pachinko ha quel DOUBLE che puo allungare la giocata, Coin Flip e secca, due facce e via. Quello che mi da sui nervi sono i tempi morti: tra un giro e l’altro passa tanto tempo e se giochi da mobile con la linea ballerina ti perde il video a meta bonus. Successo due volte e non e piacevole.

    Cosa che ripeto sempre: solo concessionari ADM. Qui in Italia i tavoli di Crazy Time sono gli stessi di Evolution, pero la differenza la fa l’operatore. Ho visto gente finire su siti.com senza concessione e poi lamentarsi che non li pagano. Il dealer e una persona vera e la ruota gira davvero, su questo nulla da dire, ma la ruota non ti deve niente. Puntate cifre piccole, segnatevi quanto spendete, e se le statistiche vi stanno facendo inseguire un bonus, chiudete la pagina.

  13. Frankdab Frankdab

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

  14. Stephenvot Stephenvot

    Текст посвящён распространённым мифам о зависимости и их развенчанию. Мы предоставим научно обоснованную информацию и дадим рекомендации по выбору эффективного способа борьбы с зависимым поведением.
    Только факты! – врач нарколог на дом в Москве

  15. IsmaelFlolo IsmaelFlolo

    This post has a natural and well-considered flow that makes the discussion easy to understand while also keeping the content engaging for readers.

    non gamstop casino

  16. Been using Betbolt UK since the middle of this year and tbh it’s grown on me. Game library is quite wide — must be somewhere around 3,500 titles on there. Play’n GO and NetEnt make up the bulk of it, and Big Time Gaming in there too. Gates of Olympus and Sweet Bonanza are still the popular picks, they run smoothly here. One minor gripe — game filtering could be a bit slicker, you need some digging to locate specific titles.

    Live dealer games run through Evolution so quality’s solid. Crazy Time and Lightning Roulette — the main game shows are all there. Real croupiers, proper studios, and I’ve not had any lag issues. Usually I drift between the slots and the live tables based on what I fancy.

    The welcome bonus at Betbolt UK came as a matched deposit up to ?200 plus 100 bonus spins for one of their Pragmatic slots. The wagering requirement is 35x that’s about standard for UK sites. There might be promo codes going — check bettbolt before you deposit since promos change fairly often. Minimum deposit to get the bonus is ?20, which is fine.

    Betbolt UK’s sportsbook is solid — EPL markets are extensive and the odds hold up to the main UK bookies. In-play works well generally, but occasionally the odds can lag a bit during busy match times. Not a dealbreaker but worth noting.

    Betbolt UK cashouts have been solid for me. Using a Visa debit and funds arrived in under 24 hours. Visa, Mastercard, Skrill and Neteller are all there, plus crypto for those who want it. MGA-licensed which gives it some credibility at least. Live chat is 24/7 and they were quick the time I queried something.

  17. Been using Betbolt UK since early this year and tbh it’s grown on me. Game library is pretty massive — reckon there’s somewhere around 3,500 titles on there. Pragmatic Play and Play’n GO dominate the lobby, and Big Time Gaming slots mixed in as well. Gates of Olympus and Sweet Bonanza are obviously the most popular picks, they load fine on the site. One minor gripe — game filtering could be a bit slicker, takes a bit of patience to find specific titles.

    The live table game section run through Evolution so you know you’re in safe hands. Crazy Time and Lightning Roulette — all the Evolution game shows are covered. Proper dealers, decent quality and no complaints on mobile either. I mostly split my time between the slots and the live tables based on what I fancy.

    The welcome offer at Betbolt UK was a 100% match up to ?100 plus 50 free spins on a Pragmatic Play title. Wagering sits at 30x that’s about standard for UK sites. Worth checking betbolt bonus code before you sign up as promos shift around fairly often. Minimum deposit to get the bonus is ?10, which is fine.

    Football betting at Betbolt UK is decent enough — EPL markets are well covered and they hold up to the main UK bookies. Live betting runs smoothly most of the time, but occasionally the markets can refresh slowly on busy matchdays. Minor stuff really but worth noting.

    Withdrawals at Betbolt UK have been fine for me. Been going with Neteller and funds arrived within a day. Visa, Mastercard, Skrill and Neteller are all supported, and there’s Bitcoin if that’s your thing. The site holds an MGA licence so there’s at least some regulatory oversight. Live chat is 24/7 and they were quick when I had a question about a withdrawal.

  18. Aw, this was a very good post. Taking a few minutes and actual effort to make a great article… but what can I say… I procrastinate a whole lot and don’t manage to get anything done.

  19. Лента из нержавеющей стали — один из самых популярных видов стального проката в промышленности. Она производится из коррозионностойких марок стали, например 12Х18Н10Т, 08Х18Н10, AISI 304 и их аналогов.

    Основные характеристики ленты из нержавейки: высокая устойчивость к коррозии, механическая прочность, гибкость и пластичность и длительная работоспособность. Толщина ленты обычно составляет от 0,05 до 3,0 мм, а ширина — от 10 до 600 мм в зависимости от назначения.

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

    При выборе ленту из нержавеющей стали важно учитывать химический состав, вид обработки (нагартованная либо без термообработки), допуски по толщине и состояние поверхности (шлифованная или матовая).

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

  20. Davidabini Davidabini

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

  21. Нержавеющая стальная лента — один из самых популярных видов металлопроката в различных отраслях. Она производится из коррозионностойких марок стали, например AISI 316, AISI 304, 12Х18Н10Т и ряда других марок.

    Главные свойства данного вида проката: высокая устойчивость к коррозии, достаточная прочность на разрыв, гибкость и пластичность и длительная работоспособность. Толщина ленты обычно составляет от 0,05 до 3,0 мм, ширина — от 20 до 400 мм в зависимости от назначения.

    Область применения в пищевом производстве, в химической отрасли, при монтажных работах, в автомобилестроении и в медицинском оборудовании. Также нержавеющую ленту часто применяют для производства пружинных элементов, крепёжных хомутов, прокладок и уплотнений и облицовочных деталей.

    Выбирая ленту из нержавеющей стали важно учитывать конкретную марку, термическое состояние (холоднокатаная либо без термообработки), а также точность размеров и состояние поверхности (матовая или шлифованная).

    Подробнее о продукции и ценах рекомендуем на странице нержавеющая лента — тут размещён полный каталог нержавеющей ленты с описанием и формой заказа.

Leave a Reply

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