[omniORB] Creating a nil reference with a repository ID?

Lars von Wedel vonWedel@lfpt.rwth-aachen.de
Fri, 18 May 2001 16:02:06 +0200


This is a multi-part message in MIME format.
--------------3F7857B931EF3B33B41053D7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

You're right. The function is in a template and the interface class is
actually
one of the parameters. Obviously I can return X::_nil().

My fault - my own code seems to be too complicated for me...

Lars


Duncan Grisby wrote:
> 
> On Friday 18 May, Lars von Wedel wrote:
> 
> > can I create a nil reference based on a repository ID? Of course, I
> > can create one when I know the class explicitly at compile time, but
> > using a servant locator I only have a repository ID.
> 
> I don't understand what the problem is. Servant locators don't deal
> with object references at all -- they deal with servants.
> 
> In a function that must return an object reference, there are two
> cases. The first is that the function returns generic CORBA::Object,
> in which case you can return CORBA::Object::_nil(). The second is that
> the function returns a specific object reference type, in which case
> you can use the right _nil() function for that type.
> 
> Cheers,
> 
> Duncan.
> 
> --
>  -- Duncan Grisby  \  Research Engineer  --
>   -- AT&T Laboratories Cambridge          --
>    -- http://www.uk.research.att.com/~dpg1 --
--------------3F7857B931EF3B33B41053D7
Content-Type: text/x-vcard; charset=us-ascii;
 name="vonWedel.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Lars von Wedel
Content-Disposition: attachment;
 filename="vonWedel.vcf"

begin:vcard 
n:von Wedel;Lars
tel;cell:++49 172 2043412
tel;fax:++49 241 8888326
tel;work:++49 241 805240
x-mozilla-html:TRUE
url:http://www.lfpt.rwth-aachen.de/Staff/vonwedel.html
org:RWTH Aachen;Lehrstuhl fuer Prozesstechnik
adr:;;Turmstrasse 46;52056 Aachen;;;
version:2.1
email;internet:vonWedel@lfpt.rwth-aachen.de
end:vcard

--------------3F7857B931EF3B33B41053D7--