[omniORB] Questions related with Event Channel in omniORBpy
Wang, Xiaohui
Xiaohui.Wang at spirentcom.com
Tue Dec 2 10:42:37 GMT 2003
Hi:
I am currently writing a small program to see how event service
works in omniORBpy. I am using omniORBpy-2.2
on NT platform.
My program is pretty simple like the following:
import sys
from omniORB import CORBA
import CosEventComm, CosEventChannelAdmin
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
poa = orb.resolve_init_references("RootPOA")
# Get the EventChannel instance using ior
# My event service is from Visibroker
fp = open('ior')
ior = fp.readline()
fp.close()
eventObj = orb.string_to_object(ior)
# Get the event channel
myEventChannel = eventObj._narrow(CosEventChannelAdmin.EventChannel)
# Invoke the consumers
forConsumer = myEventChannel.for_consumers()
...
When I run the program, the following exception was obtained at the
step of invoking the consumers:
Traceback (most recent call last):
File "Y:\python_corba\PythonEvent.py", line 53, in
-toplevel-
forConsumer = myEventChannel.for_consumers()
File
"C:\omniORBpy-2.2\lib\python\omniORB\COS\CosEventChannelAdmin_idl.py", line
382, in for_consumers
return _omnipy.invoke(self, "for_consumers",
_0_CosEventChannelAdmin.EventChannel._d_for_consumers, args)
COMM_FAILURE: Minor: COMM_FAILURE_UnMarshalResults,
COMPLETED_YES.
Anybody has any ideas on what happened here? Any useful information
is highly appreciated.
Thanks,
Xiaohui
More information about the omniORB-list
mailing list