[omniORB] converting servant * to objref in BOA

Andy Faibishenko AFAIBIS@tuc.com
Thu, 09 Nov 2000 09:41:18 -0600


I have some code which does the following.

I have a class A which I pass into a remote CORBA interface.  The code on =
the remote side then calls back on a method in class A. =20

I've declared A as follows

class A : public _sk_A
{
...
}

Then when I call the remote interface, I invoke
A a;
remoteObjRef->CallMeBack(&a);

This worked under Visibroker BOA but the OmniOrb3 complains about =
expecting a _objref_A *.  The docs mention OmniOrb requiring objrefs but =
how do I convert my A * to an objref *.  Am I inheriting from the wrong =
class?

Thanks.
-Andy

PS  I need to port this to OmniOrb BOA not POA.