[omniORB] name service / omniORBpy 3.0

Stefan Seefeld seefelds@MAGELLAN.UMontreal.CA
Tue, 29 Aug 2000 11:04:13 -0400


hello,

I seem to have trouble with python clients who want to
access objects exposed through the name service. The
following fails:

    object = orb.resolve_initial_references("NameService");
    context = object._narrow(CosNaming.NamingContext)
    name = [CosNaming.NameComponent("IDL:Server:1.0", "Object")]
    object = context.resolve(name)
    print object
    server = object._narrow(Warsaw.Server)
    print server
    context  = server.newServerContext(client)

object is reported to be of type omniORB.CORBA.Object
but server reports 'None'. Without the narrowing of the
server, the last line would report an AttributeError.

The above used to work without the narrowing, i.e. I
could call the 'newServerContext' method on the object
itself. What changes in omniORBpy could have triggered
this incompatibility and what is the way around this ?

Thanks a lot,	Stefan

_______________________________________________________              
              
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca

_______________________________________________________

      ...ich hab' noch einen Koffer in Berlin...