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 ?
You can use
writeReplaceas 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.