On 28 May 2001 12:01:17 +0900, Dai.K. wrote:
> 
> Re the message of ``[ruby-talk:15718] Re: gnome, bonobo and corba.''...
> 
> Erik BéČfors <erik / bagfors.nu>:
> > On 25 May 2001 22:48:33 +0900, Pat Eyler wrote:
> > > On Fri, 25 May 2001, Erik [ISO-8859-1] BéČfors wrote:
> 
> 
> > > This sounds like good research, but probably should/could be done a) after
> > > getting libbonobo-ruby to work with orbit, and b) be called something else
> > > (or used as an option in libbonobo-ruby).
> > 
> > I really like the option-thing.  That would be really cool but there is
> > a loooong way to go.
> 
>   I don't deeply know about how CORBA is used in the GNOME/bonobo framework.
> 
>   If libbonobo uses ORBit mainly via common CORBA layer, we could use 
> ``CORBA-Ruby language mapping interface'' we'll define.

libbonobo uses ORBit extensively.  Basically if we want a bonobo that's
not based on ORBit we have to write it ourselfs and not use libbonobo.

>   On this way, libbonobo-ruby need not take care of which CORBA implementation
> is used. You get and access to bonobo object(if it exists) as a CORBA::Object
> instance. Of cause, someone rewrite ruby-orbit to fit the mapping but it is
> more easy task than a task to make ruby-orbit more completion.

If we make a new bonobo-implementation this is possible.  Not it we wrap
libbonobo.

> 
>   BTW, testing Rinn is very easy if you are under GNOME.
> 
> $ wget http://prdownloads.sourceforge.net/rinn/Rinn-Ridl-0.1.2.tar.gz
> $ tar zxvf Rinn-Ridl-0.1.2.tar.gz
> $ ruby -I Rinn Rinn/test/gnome-name-service.rb
> 

You need racc also.

: [bagfors / detrius]$ ; ruby -I Rinn Rinn/test/gnome-name-service.rb 
IDL:omg.org/CosNaming/NamingContext:1.0
    0: GNOME(subcontext)
  IDL:omg.org/CosNaming/NamingContext:1.0
      0: Servers(subcontext)
    IDL:omg.org/CosNaming/NamingContext:1.0
        0: deskguide_applet(server)
      IDL:GNOME/Applet:1.0
        0: gnomeicu(server)
      IDL:GNOME/Applet:1.0
        0: gen_util_clock(server)
      IDL:GNOME/Applet:1.0
        0: battery_applet(server)
      IDL:GNOME/GenericFactory:1.0
        0: tasklist_applet(server)
      IDL:GNOME/Applet:1.0
        0: battstat_applet(server)
      IDL:GNOME/Applet:1.0
        0: gnome_panel(server)
      IDL:GNOME/Panel2:1.0
        0: control_center(server)
Rinn/rinn/giop/GIOPReplyMessage.rb:21:in `initialize': UserException occured! (RuntimeError)
	from Rinn/rinn/orbit/Protocol.rb:116:in `new'
	from Rinn/rinn/orbit/Protocol.rb:116:in `parse'
	from Rinn/rinn/orb/Connection.rb:65:in `receive'
	from Rinn/rinn/orb/Connection.rb:26:in `connect'
	from Rinn/rinn/orb/Connection.rb:26:in `start'
	from Rinn/rinn/orb/Connection.rb:26:in `connect'
	from Rinn/rinn/orb/Connection.rb:22:in `synchronize'
	from Rinn/rinn/orb/Connection.rb:22:in `connect'
	from Rinn/rinn/orb/Connection.rb:51:in `send'
	from Rinn/rinn/orb/Connection.rb:50:in `synchronize'
	from Rinn/rinn/orb/Connection.rb:50:in `send'
	from Rinn/rinn/orbit/Protocol.rb:72:in `invoke'
	from Rinn/rinn/orbit/Stub.rb:19:in `_invoke'
	from (eval):305:in `list'
	from Rinn/test/gnome-name-service.rb:32:in `dump_ncs'
	from Rinn/test/gnome-name-service.rb:55:in `dump'
	from Rinn/test/gnome-name-service.rb:60


Almost...

/Erik

-- 
Erik BéČfors               | http://erik.bagfors.nu/    
erik / bagfors.nu            | Erik.Bagfors / engohol.se
Supporter of free software | GSM +46 733 279 273
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32