Bonobo Activation API Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Next Page >>> |
Bonobo Activation was designed as a replacement for the limited libgnorba library used in GNOME. libgnorba is responsible on GNOME 1.0.x and 1.2.x systems for the activation of CORBA objects. libgnorba allows you to browse the available CORBA servers on your system (running or not). It keeps track of the running servers so that if you ask for a server which is already running, you will not start it again but will reuse the already running one.
libgnorba works well in a limited number of cases and suffers of a number of design issues. More specifically:
It cannot handle the non-local case gracefully. ie: you cannot start a remote CORBA server with libgnorba.
It uses evil hacks to keep track of the system's CosNaming service making it unusable on systems where an X server is not running. (for details, read libgnorba code ;-)
libgnorba allows you to only request specific servers by their name: you cannot ask for a server which provides a specific service. You have to ask for a server which you know provides a specific service.
Bonobo Activation was designed to address these issues. The remote issue is completely solved by the Bonobo Activation daemon (see the chapter called Bonobo Activation Architecture), the evil hacks regarding X are part of our past and the grand OAF query langage (see the chapter called OAF Query Langage) gives you the ability to perform arbitrary queries on the database of CORBA servers.
Basically, Bonobo Activation keeps track of all the CORBA servers installed on your machine and can track any other machine's CORBA servers provided you set up Bonobo Activation correctly and allows you to perform queries on the properties of these servers. The following very simple example will make things rather clear:
CORBA_Object o = bonobo_activation_activate ("repo_ids.has ('IDL:GNOME/Graph/Layout:1.0')", NULL, 0, NULL, &ev); |
Here follows a very simple-stupid example of what you can do with Bonobo Activation. The complete API description of bonobo activation, the OAF query langage reference and the .server file format reference are included in this document and are recommended readings. Reading the chapter called Bonobo Activation Architecture is also a good idea.