4. Chapter 4: Inter-process Communication

4.12. CORBA’s Common Data Representation (CDR)

Represent all of the data types that can be used as arguments and return values in remote invocations in CORBA

15 primitive types

  • Short (16bit), long(32bit), unsigned short, unsigned long, float, char, …

Constructed types

  • Types that composed by several primitive types

A message example

The type of a data item is not given with the data representation in message

  • It is assumed that the sender and recipient have common knowledge of the order and types of the data items in a message.
  • For RMI and RPC, each method invocation passes arguments of particular types, and the result is a value of a particular type.


CORBA CDR for constructed types