Serializing component instance references

You can call the ORB.object_to_string() and ORB.string_to_object() methods to serialize and deserialize proxy object references. Assuming that the proxy interface is Payroll, this call serializes a proxy component reference:

  Payroll payroll; 
... deleted code that instantiates payroll ...

  String payroll_ior = orb.object_to_string(payroll);

This call deserializes the reference:

  Payroll payroll = PayrollHelper.narrow(
                   orb.string_to_object(payroll_ior));

The following restrictions apply when serializing and deserializing component proxy references: