Thomas Girard: Introducing CORBA
What is CORBA?
The wikipedia page says it all:
The Common Object Request Broker Architecture (CORBA) is a standard defined by the Object Management Group (OMG) that enables software components written in mutiple computer languages and running on multiple computers to work together (i.e., it supports mutiple platforms).The standard was created twenty years ago, in 1991. The technology can be used in many programming languages: Python, Java, C++, C, etc. Hence you can write a software in your favorite programming language, exposing services that others will be able to call using a different language. (Nowadays you can do the same with WebServices. This article is about CORBA.) All CORBA specifications are available on [OMGSPEC]; latest version is [CORBA3.1]. [MCHALE] book is a very good way to learn CORBA.
How does it work?
CORBA is language agnostic because it relies on its own language: the
Interface Definition Language (IDL for short). The IDL defines the
contract between the client (software calling the service) and the
server (software implementing the service). The service is exposed
through a remote object.
IDL is used to define:
- modules, which are called namespaces in C++ (or packages in Java)
- structs, which are like C structs: they can contain data only (the data part of the contract)
- interfaces, which contain methods specification (the service part of the contract)
- exceptions that can be raised by a method
- typedefs which are type aliases
- unions, la C
- enums, enumerations
- constants
- char, octet
- string, wstring
- short, long, long long (signed if unspecified, unsigned if prefixed with unsigned)
- float, double, long double
- arrays
- sequences
- any which can be any existing or user-defined type
- client-side code, called stubs
- server-side code, called skeletons
Telecom Log Service example
The Telecom Log Service [TLOG] is an OMG specified service that
defines two interfaces:
Here is the simplified IDL for these parts:
[CORBA3.1] http://www.omg.org/spec/CORBA/3.1/
[MCHALE] http://www.ciaranmchale.com/corba-explained-simply/
[OMGSPEC] http://www.omg.org/technology/documents/spec_catalog.htm#Middleware
[TLOG] http://www.omg.org/spec/TLOG/
[EVENT] http://www.omg.org/spec/EVNT/
[NOTIF] http://www.omg.org/spec/NOT/
- Log, to add, search and delete records
- LogMgr, a Log container to lookup a given log, or list all contained logs
- basic implementation. This is the service depicted below.
- event-based implementation. The Event Service [EVENT] is another CORBA service specification. Combining both services means that software emitting events can be plugged to an Event Log without modification.
- notify-based implementation. The Notification Service [NOTIF] is another CORBA service specification, built on top of the Event Service, with added filtering facility. Again, combining these two services provide easier integration with existing software.
Here is the simplified IDL for these parts:
#include <TimeBase.idl> // IDL can include each other #pragma prefix "omg.org" // extra prefix to use in front of type names // DsLogAdmin definition // Because of the #pragma prefix above, the complete name of this module // is omg.org/DsLogAdmin module DsLogAdmin // E X C E P T I O N -------------------------------------------------- exception InvalidGrammar ; // empty exception exception InvalidConstraint ; // empty exception exception LogFull short n_records_written; ; // one attribute exception LogOffDuty ; // empty exception exception LogLocked ; // empty exception exception LogDisabled ; // empty exception // T Y P E A L I A S ------------------------------------------------ typedef unsigned long LogId; typedef sequence<LogId> LogIdList; // LogIdList is a sequence of LogId typedef unsigned long long RecordId; typedef string Constraint; typedef TimeBase::TimeT TimeT; // TimeT type defined in TimeBase module typedef sequence<any> Anys; // Anys is the name of a sequence of any // S T R U C T U R E S ------------------------------------------------ struct NVPair string name; any value; ; // <-- Mandatory semi-colon typedef sequence<NVPair> NVList; // Give a name to a sequence of NVPair struct LogRecord RecordId id; TimeT time; NVList attr_list; any info; ; typedef sequence<LogRecord> RecordList; // I N T E R F A C E S ------------------------------------------------ // Iterator interface specification interface Iterator // get() method: // - two input parameters // - returning a list of LogRecord // - possibly raising InvalidParam exception RecordList get(in unsigned long position, in unsigned long how_many) raises (InvalidParam); void destroy(); ; // <-- Mandatory semi-colon // Forward declaration interface LogMgr; interface Log LogMgr my_factory(); LogId id(); // retrieve() method: // - two input parameters // - one output parameter // - returning a list of LogRecord // This method will actually return two objects: the // RecordList and the Iterator RecordList retrieve(in TimeT from_time, in long how_many, out Iterator i); RecordList query(in string grammar, in Constraint c, out Iterator i) raises (InvalidGrammar, InvalidConstraint); unsigned long delete_records(in string grammar, in Constraint c) raises (InvalidGrammar, InvalidConstraint); void write_records(in Anys records) raises (LogFull, LogOffDuty, LogLocked, LogDisabled); ; typedef sequence<Log> LogList; // Give name LogList to sequence of Log // inteface BasicLog derives from interface Log interface BasicLog : Log void destroy(); ; interface LogMgr LogList list_logs(); Log find_log(in LogId id); LogIdList list_logs_by_id(); ; // inteface BasicLogFactory derives from interface LogMgr interface BasicLogFactory : LogMgr BasicLog create( in LogFullActionType full_action, in unsigned long long max_size, out LogId id) raises (InvalidLogFullAction); BasicLog create_with_id( in LogId id, in LogFullActionType full_action, in unsigned long long max_size) raises (LogIdAlreadyExists, InvalidLogFullAction); ; ; // <-- Mandatory semi-colonThe complete IDL file for the Basic Telecom Log Service is available here.
[CORBA3.1] http://www.omg.org/spec/CORBA/3.1/
[MCHALE] http://www.ciaranmchale.com/corba-explained-simply/
[OMGSPEC] http://www.omg.org/technology/documents/spec_catalog.htm#Middleware
[TLOG] http://www.omg.org/spec/TLOG/
[EVENT] http://www.omg.org/spec/EVNT/
[NOTIF] http://www.omg.org/spec/NOT/

To setup a virtual network lab, you get a lot of alternatives. You can
for example use
Let s implement this lab. You should grab the sources first:
A while ago, we got another machine for hosting Alioth and so we
started thinking about how to use that machine. It's a used machine
and not massively faster than the current hardware, so just moving
everything over wouldn't actually get us that much of a performance
upgrade.
However, Alioth is using FusionForge, which is supposed to be able to
run on a cluster of machines. After all, this was originally built
for SourceForge.net, which certainly does not run on a single host.
So, a split of services is what we'll do.
This weekend, we're having a sprint in
I have just pushed out version 0.17 of
This release has several ipconfig (klibc dhclient) enhancements, arm porting fixes and usual cleanups: For details see
Sometimes people will tell you what you should do. Sometimes they will even shout at you for simply asking a question on why they want something done because it isn't clear just from itself. And others likes to jump the boat and join in just for the fun of it...
Gladly, this is MY life, and I choose how much abuse I'm willing to take, especially for a voluntary work that I didn't even enroll for but got put into. Sometimes through my dedication to getting quality into things and seeing that others simply neglect these areas, but they need to get addressed anyway, no matter how little respect is shown for people investing in these boring areas.
The topic of It's MY Life is an old one and thus it is no surprise that a fair amount of songs surrounding it popped up over time. In my previous blog entry I wrote about
Images Moved
A while ago, MusicBrainz used a technique called
That was a damn busy week.
It was mostly centered about attending
You know, GNOME Shell and I are not really strangers to each other for a long time now. I have been using it almost daily as my main desktop since late 2009, when I started shipping it to Debian experimental. That means that I had ample opportunity to both get used to it and witness the huge improvements it had with every new release.
My general feeling towards GNOME 3 is this: . Yes, I love it! I love the new themes, I love the window borders, I love the top panel, the overview, the dynamic workspaces, I love the Me menu, I love the clock and the calendar, the system indicators with the beautiful symbolic icons, being able to search for applications in such a nice way, the window animations, the multi-screen support, the new nautilus, the dash, looking glass. It s hard for me to even express how thankful I am and how much admiration I have for the awesome folks who helped bring this to life. Thanks so much!


Today was Bike to Work Day, and I biked to work, just like I do most other
days.
I missed out on it last year because I was still out on paternity leave at
the time. That means I've almost been back at work a year.
Since we only have one car, and when Zoe was little and sleeping a lot, it
made most sense for me to start biking to work again. I'm really glad I did,
because not only is it faster compared to the round trip time that Sarah
would need to take to drop me off and pick me up, it's a lot easier on her
and Zoe. It used to be a challenge for Sarah to get from home to work and
back in the mornings without Zoe falling asleep in the car.
The only times I've needed a lift have been in wet weather during winter,
and when I've been sick. Now that we're out of winter, we should have
endless sunshine for months, and it's starting to warm up, which makes
biking so much more pleasant.
It takes about 10-12 minutes door to door, which is short and sweet, and
most of that is on the lovely
LightDM's a from-scratch implementation of an X display manager, ie the piece of software that handles remote X connections, starts any local X servers, provides a login screen and kicks off the initial user session. It's split into a nominally desktop-agnostic core (built directly on xcb and glib) and greeters, the idea being that it's straightforward to implement an environment-specific greeter that integrates nicely with your desktop session. It's about 6500 lines of code in the core, 3500 lines of code in the gtk bindings to the core and about 1000 in the sample gtk greeter, for a total of about 11,000 lines of code for a full implementation. This compares to getting on for 60,000 in gdm. Ubuntu plan to switch to LightDM in their next release (11.10).
IPv6 adoption is increasing, and along with it come a new set of behaviours and defaults that system administrators and users must learn and become familiar with. I was recently caught out by Linux s handling of IPv6 router advertisements (RAs) when forwarding is also enabled on the interface. It took me a while to figure out and searching for obvious terms (such as those in the first half of the title of this post) didn t immediately yield useful answers, so here is my attempt to help shed some light on the subject.
By default Linux will ignore IPv6 RAs if the interface is configured to forward traffic. This is in line with