Interoperable Object Reference

When developing a CORBA application, you usually encounter object references in the form of an object instance (a C++ object or a Java object). There are occasions, however, when object references have to be converted to a stream of bytes:

  • When marshalling an object reference for transmission as a parameter or return value in an IIOP message (see Chapter 16, “Internet Inter-ORB Protocol”).

  • When CORBA::ORB::object_to_string() is called to stringify a given reference.

The use of object_to_string() is of particular interest in this chapter. It is easy to dump the state of an object reference into a string by calling object_to_string(). The information that can be extracted from the resulting string is often very helpful ...

Get Pure CORBA now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.