[omniORB] CORBA::Principal - IDL compilation error

Duncan Grisby dgrisby@uk.research.att.com
Tue, 26 Sep 2000 13:51:13 +0100


On Sunday 17 September, Senthil Kumar wrote:

> // User name and authentication for security
>   typedef sequence<octet> Ticket;
>   struct AccessControl {
>     CORBA::Principal user;
[...]

CORBA::Principal is not supported in omniORB, and is now deprecated
anyway. You can work-around the problem by replacing the Principal
type with a sequence of octets, and you will be compatible on-the-wire
with an ORB which does support Principal. The only time this will not
work is if you put the structure in an Any, in which case the TypeCode
will be wrong.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --