Python, CORBA and Naming Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Melissa Wallis

    Python, CORBA and Naming Service

    I am using python and omniORB for a client program. The server is on
    another machine using an ACE TAO orb. I have been unable to figure out how
    to talk to a different naming service without using the IOR. I will not
    always have the IOR available so I need to use the naming service. Has
    anyone been able to connect to a different ORB using the naming service?

    Thanks
    Melissa


  • Noah

    #2
    Re: Python, CORBA and Naming Service

    "Melissa Wallis" <mwallis@swri.o rg> wrote in message news:<103mn7v1r cp1gac@corp.sup ernews.com>...[color=blue]
    > I am using python and omniORB for a client program. The server is on
    > another machine using an ACE TAO orb. I have been unable to figure out how
    > to talk to a different naming service without using the IOR. I will not
    > always have the IOR available so I need to use the naming service. Has
    > anyone been able to connect to a different ORB using the naming service?
    >
    > Thanks
    > Melissa[/color]

    It's been a while since I worked with CORBA, but
    I seem to remember that you have to connect
    by IP or hostname and the port.
    Maybe they have something more magical now.

    Yours,
    Noah

    Comment

    • Irmen de Jong

      #3
      Re: Python, CORBA and Naming Service

      Noah wrote:
      [color=blue]
      > It's been a while since I worked with CORBA, but
      > I seem to remember that you have to connect
      > by IP or hostname and the port.
      > Maybe they have something more magical now.[/color]

      They have the corbaloc: and corbaname: IORs.
      See the COSNaming spec, ftp://ftp.omg.org/pub/docs/ptc/00-08-07.pdf

      (haven't used them so I don't know more about this...)

      --IRmen

      Comment

      • Duncan Grisby

        #4
        Re: Python, CORBA and Naming Service

        In article <103mn7v1rcp1ga c@corp.supernew s.com>,
        Melissa Wallis <mwallis@swri.o rg> wrote:
        [color=blue]
        >I am using python and omniORB for a client program. The server is on
        >another machine using an ACE TAO orb. I have been unable to figure out how
        >to talk to a different naming service without using the IOR. I will not
        >always have the IOR available so I need to use the naming service. Has
        >anyone been able to connect to a different ORB using the naming service?[/color]

        Configure omniORB with a line like this in its config file:

        InitRef = NameService=cor baname::my.host .name:port

        putting in the right host name and port for TAO's naming service. If
        TAO uses the default port of 2809, you can miss out the port number.

        Then you can just get hold of the name service with code like:

        orb = CORBA.ORB_init( )
        obj = orb.resolve_ini tial_references ("NameServic e")
        ns = obj._narrow(Cos Naming.NamingCo ntext)

        Cheers,

        Duncan.

        --
        -- Duncan Grisby --
        -- duncan@grisby.o rg --
        -- http://www.grisby.org --

        Comment

        Working...