472,096 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

ORBit-Python problem :(

I wrote a small CORBA program and am using ORBit-python.
The IDL file was as below:
typedef sequence<string> msgLines;
struct msg
string fr;
string to;
msgLines body;
interface mail
void submit (in msg message);

The server program is as below:
import CORBA
class mail:
msg = 0
def submit(self, msg):
print "Message Recieved from:", msg.fr
print "Message for:", msg.to
for line in msg.body:
print line
self.msgs = self.msgs + 1;
print "Message Served: ", self.msgs


orb = CORBA.ORB_init((), CORBA.ORB_ID)
poa = orb.resolve_initial_references("RootPOA")

servant = POA.MESSAGING.mail(mail())
ref = poa.servant_to_reference(servant)
print "Wrote IOR to file", orb.object_to_string(ref)

After running the program, it gives the following errors:
Traceback (innermost last):
File "./msg-server.py", line 14, in ?
AttributeError: load_idl

If I change the CORBA.load_idl to CORBA._load_idl then the error comes
at some other place... Namely below:

Traceback (innermost last):
File "./msg-server.py", line 20, in ?
servant = POA.MESSAGING.mail(mail())
NameError: POA

The CORBA module is dynamically loaded from the following file:

I have installed orbit-python-0.3.0-1 on my machine.

Please help me out.. I need help desperately to run the server :((
Thanx in advance :)
Jul 18 '05 #1
0 1107

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Eurydice | last post: by
19 posts views Thread by Stephan Aspridis | last post: by
3 posts views Thread by roxrox_1959 | last post: by
2 posts views Thread by Kira Yamato | last post: by
10 posts views Thread by HardySpicer | last post: by

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.