Re: Few questions about Bonobo



On Thu, 2001-09-27 at 15:28, Philippe FREMY wrote:
> 
> 	Hi,
> 
> I read that you can have an in-process server for components ? That just
> rocks. I'd like to know more about this.
> 
> Do you have to develop your component especially for in-process or
> out-of-process server ? 
>
yes, but this only means creating a BonoboGenericFactory or a
BonoboShlibFactory, which is just one line of code if you use the
BONOBO_*_FACTORY defines included in bonobo-generic-factory.h and
bonobo-shlib-factory.h

> How do you select which kind of server will be used?
>
I suppose the only way is by having 2 components listed (one for the
out-of-proc and one for the in-proc server) in the OAF configuration and
start the one you want from your code by specifying the OAFIID of the
component you want.
I don't know if there's a better way.

> If you can use in-process components, when does it make sense not to use
> it ? In KDE, we use in-process components everywhere. There are only very
> rare case where it doesn't make sense (more precisely, it is not possible).
> I imagine that when calling a function, there is still a conversion:
> component host types -> idl types -> component types  no ?
> 
> I imagine that it is not possible to pass a pointer to some data through
> Bonobo. You have to marshall your object if you want to do give access to it
> ?
> 
> Is there a way to count the number of components that actually exist right
> now in Gnome ? In KDE, I can do that by grepping .desktop files for service.
> 
in GNOME you can do it by querying OAF, that is, using the oaf_query
function, or to be like the KDE way, grepping /usr/share/oaf files

> 
> Apart from Gui components, does Gnome uses true components ?
>
I suppose you mean non-GUI components. In that case, yes, they're used
everywhere in evolution, gnome-db, etc
 
> How well are orbit and bonobo bindings other than C supported ? What is
> available ?
> 
Perl ones are quite good, I think. Also, you've got bindings for Python
and Guile.

> I have discovered (thank to the ibm article) that writing Corba calls in C
> is pretty tedious but there are sugar wrapper to avoid that. Are the sugar
> wrapper automatically generated or should someone write them first ?
> 
they are most of them in libbonobo/libbonoboui, so they're already
written.

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]