[omniORB] omniORBpy newbie: returning interface from remote call

gabriele renzi surrender_it at yahoo.it
Sun Apr 15 13:14:36 BST 2007


--- Duncan Grisby <duncan at grisby.org> wrote:

> On Thursday 12 April, gabriele renzi wrote:
> 
> > I just started experimenting with omniORBpy today,
> everything seemed
> > to be working fine but now I hit a strange
> problem. My IDL file looks
> > like this
> 
> [...]
> > but then if I try to call 
> > calc = cf.client_instance('name')
> > I get a 
> > CORBA.BAD_PARAM(omniORB.BAD_PARAM_WrongPythonType,
> 
> > CORBA.COMPLETED_MAYBE) exception.
> > 
> > The code in CalcFactoryImpl, the subclass of the
> > abstract PSD__POA.CalcFactory is like this:
> > def client_instance(self,key):
> >  client=CalcImpl() # PSD__POA.Calc subclass
> >  return client
> 
> client is a servant, i.e. a programming language
> object. It is different
> from a CORBA object reference, which is what you
> must return from your
> factory operation.

yes, I got it in the end, I just expected that this
would have been done by the implementation instead of
me for what relates to method calling.

Thanks a lot for all the links they seem quite useful
and interesting :)  
 


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 



More information about the omniORB-list mailing list