Search code examples
javaserializationcorba

Is there any equivalent to writeReplace in CORBA?


When using standard Java serialization, it is possible to have an object replaced on the fly in stream by, according to Serializable interface, creating a Object writeReplace() method that will be invoked during serialization.

My question is simple : is there an equivalent for this construct in Corba Java implementation ?


Solution

  • You can use writeReplace as normal with RMI-IIOP (Java RMI over CORBA/IIOP). The ORB presents "standard" Java serialization of Serializable/Externalizable (with all associated features) and marshals them as "custom marshalled" values.