473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Jul 18 '05 #1
3 3214
"Melissa Wallis" <mw*****@swri.org> wrote in message news:<10*************@corp.supernews.com>...
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


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
Jul 18 '05 #2
Noah wrote:
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.


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
Jul 18 '05 #3
In article <10*************@corp.supernews.com>,
Melissa Wallis <mw*****@swri.org> wrote:
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?


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

InitRef = NameService=corbaname::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_initial_references("NameService")
ns = obj._narrow(CosNaming.NamingContext)

Cheers,

Duncan.

--
-- Duncan Grisby --
-- du****@grisby.org --
-- http://www.grisby.org --
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Akhilesh S. Shirbhate | last post by:
I wrote a small CORBA program and am using ORBit-python. The IDL file was as below: --------------------------- module MESSAGING { typedef sequence<string> msgLines; struct msg { string fr;...
1
by: Akhilesh S. Shirbhate | last post by:
Sorry for reposting, but please help me... I desperately need help. I wrote a small CORBA program and am using ORBit-python. The IDL file was as below: --------------------------- module...
4
by: linuxpld | last post by:
Hello I`m writing a program (server in future) in python. I would like to write it in such a way that I will be able to write gui in any language and connect to my python program and use...
4
by: Stefan Arentz | last post by:
Is there a JMS-like API available for Python? I would like to quickly receive messages through the network and then process those slowly in the backgound. In the Java world I would simply create a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.