[omniORB] Is a servant allowed as member variable ofanother servant?

Clarke Brunt clarke.brunt at yeomannavigation.co.uk
Sun Jan 25 11:25:06 GMT 2004


> >I created an instance of the servant for A as a member variable of B,
> >and used the _this() function to get a reference.  This didn't work.
>
> _this() is OK as long as you are using the root POA. If B is in a child
POA
> of the Root POA, then this could explain your situation...

You can override ServantBase's method:

virtual POA_ptr _default_POA();

to return the particular POA you want used by default. See the spec. for
details.
But I agree that it might be best to explicitly use the appropriate POA
rather than relying on this.

--
Clarke Brunt




More information about the omniORB-list mailing list