Re: Issues running hello world/echo example
George Finklang <[email protected]>
| Newsgroups | gmane.comp.gnome.orbit.general |
|---|---|
| Message-ID | <[email protected]> |
Jules Colding wrote: >On Thu, 2005-09-08 at 08:58 -0700, George Finklang wrote: > > >>I'm actually using pyorbit as a front end, and either format seems to >>work ( atleast -ORBCorbaloc=1 and --ORBCorbaloc=1 both work). >> >>Any other ideas? >> >> > >What version of ORBit2 are you using? You could have name resolution >problems, some of which are addressed in ORBit2 2.12.2 onwards (see the >ChangeLog). > > > I'm using 2.12.3, with pyorbit, here is the code (from the pyorbit example) attached. The corbaloc I get is: corbaloc:uiop:/tmp/orbit-qa/linc-4062-0-7cd8880973338:/%00%00%00%00%5b%cc%e0%b8%6a%28%a8%28%dc%2b%28%28%28%28%28%28%01%00%00%00%bb%9c%d6%42 --George _______________________________________________ orbit-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/orbit-list
echo.idl
(text/plain, 83 B)
module Examples {
interface Echo {
void echoString(in string input);
};
};
nslookup.py
(text/plain, 744 B)
# Echo server program. Converted from C by Magnus Therning # <[email protected]> # import the modules for using ORBit and load the interface definition import CORBA, ORBit ORBit.load_file('echo.idl') # import the POA object related to the Examples module import Examples__POA # definition of a class for the Echo interface class MyEchoSvr(Examples__POA.Echo): def __init__(self): Examples__POA.Echo.__init__(self) # definition of the only function in EchoServer def echoString(self, input): print 'Received string: %s' % input # initiate the ORB orb = CORBA.ORB_init(['--ORBIIOPIPv4=1','--ORBCorbaloc=1']) # create a servant object servant = MyEchoSvr() str = orb.object_to_string(servant._this()) print str