在CORBA中有没有与writeReplace相同的东西? [英] Is there any equivalent to writeReplace in CORBA?

查看:118
本文介绍了在CORBA中有没有与writeReplace相同的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用标准Java序列化时,根据 Serializable 界面,创建对象writeReplace()将在序列化期间调用的方法。

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.

我的问题很简单:在Corba Java实现中是否存在此构造的等价物?

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

推荐答案

您可以像使用RMI-IIOP(基于CORBA / IIOP的Java RMI)一样正常使用 writeReplace 。 ORB呈现Serializable / Externalizable的标准Java序列化(包含所有相关功能),并将它们编组为自定义编组值。

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.

这篇关于在CORBA中有没有与writeReplace相同的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆