[omniORB] omniOrbpy and Gnome Name Service

Duncan Grisby dgrisby@uk.research.att.com
Thu, 30 Nov 2000 10:11:20 +0000


On Tuesday 28 November, jon@totient.demon.co.uk wrote:

> I've been trying to get omniORB to talk to the GNOME Name Service.
> I've hacked up this python script

[...]
> but it hangs on the naming.list operation. This script works if you
> point it at omniNames instead. Here is the trace

The problem is GNOME's proprietary authentication mechanism. Rather
stupidly, if ORBit rejects a connection, it just freezes, rather than
closing the connection. omniORB has a hack to support it. You need to
set the environment variable OMNIORB_PRINCIPAL to the string returned
by

  xprop -root GNOME_SESSION_CORBA_COOKIE

If you want to set the environment variable from within an omniORBpy
program, you must do it _before_ you import CORBA.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --