CORBA中POA相关机制深入解析
1. 前置操作与Evictor创建
在进行后续操作前,需要创建一个 entity_activator_poa ,代码如下:
Pure.Util.POAUtility.create_servant_activator_POA(
root_poa,
root_poa_manager,
“entity_activator_poa”,
false, // Single threaded
true // for ‘Entity’ objects
);
之后,为 entity_activator_poa 创建一个 Evictor :
ServantActivatorImpl entity_activator = new ServantActivatorImpl(
10 // Queue size limit
);
entity_activator_poa.set_servant_manager(
entity_activator
);
接着创建工厂并导出对象引用,以创建 WasteItemAdmin 对象为例:
System.out.pri
超级会员免费看
订阅专栏 解锁全文
46

被折叠的 条评论
为什么被折叠?



