[omniORB] How do you implement callbacks?
Andrew Edem
andrew at kaxis.us
Tue Jan 8 10:08:27 GMT 2008
Hi Steve,
> I create an instance of iPCWatchdogObserver
> self.watchdogObserver = iPCWatchdogObserver()
>
> I call connectToiPCDevice() with the
> iPCDevice = self.iPCConnect.connectToiPCDevice(self.watchdogObserver)
> CORBA.BAD_PARAM(omniORB.BAD_PARAM_WrongPythonType, CORBA.COMPLETED_NO)\n'
>
> What am I doing wrong?
You need to call self.watchdogObserver._this() to register it on the POA and
get the object reference from the implementation:
iPCDevice = self.iPCConnect.connectToiPCDevice(self.watchdogObserver._this())
Cheers,
-Andrew
More information about the omniORB-list
mailing list