Re: Issues running hello world/echo example
- From: George Finklang <gfinklang activegrid com>
- To: Jules Colding <colding omesc com>
- Cc: orbit-list gnome org
- Subject: Re: Issues running hello world/echo example
- Date: Fri, 09 Sep 2005 09:57:54 -0700
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
module Examples {
interface Echo {
void echoString(in string input);
};
};
# Echo server program. Converted from C by Magnus Therning
# <magnus therning org>
# 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]