12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

移 植 接 收 器表 30.12 在 Java 下 对 接 收 器 进 行 重 新 命 名旧 式 名 称com.(inprise|borland|visigenic).vbroker.interceptor.ClientInterceptorFactorycom.(inprise|borland|visigenic).vbroker.interceptor.ServerInterceptorFactory新 式 名 称com.inprise.vbroker.interceptor.migration.ClientInterceptorFactorycom.inprise.vbroker.interceptor.migration.ServerInterceptorFactory移 植 BindInterceptors在 <strong>VisiBroker</strong> <strong>Edition</strong> 中 , 封 装 器 模 拟 真 实 的 BindInterceptor。在 以 前 的 版 本 中 , 要 加 入 一 个 BindInterceptor, 您 需 要 :1 通 过 调 用 以 下 方 法 来 取 得 ChainBindInterceptor 的 引 用C++:ORB::resolve_initial_references("ChainBindInterceptor")或 者 :Java:通 过 调 用 Java ORB.resolve_initial_references("ChainBindInterceptor") 以 取 得ChainBindInterceptor 的 引 用 。2 给 序 列 中 加 入 新 的 接 收 器 。C++: 要 在 <strong>VisiBroker</strong> <strong>Edition</strong> for C++ 下 使 用 您 的 <strong>VisiBroker</strong> 3.x 限 制 接 收 器 代 码 ,您 应 该 :1 通 过 调 用 ORB::resolve_initial_references("ChainBindInterceptor"), 取 得interceptor_migration::ChainBindDelegateFactory 的 引 用 。2 然 后 , 创 建 您 的 interceptor_migration::BindInterceptorDelegate ( 而 不 是您 在 <strong>VisiBroker</strong> 3.x 中 所 使 用 的 interceptor ::BindInterceptor) 并 将 它 加入 序 列 上 。Java:要 在 <strong>VisiBroker</strong> <strong>Edition</strong> for Java 上 使 用 您 的 <strong>VisiBroker</strong> 3.x 限 制 接 收 器 , 您 应该 :1 通 过 调 用 ORB.resolve_initial_references("ChainBindInterceptor") 取 得interceptor_migration.ChainBindDelegateFactory 的 引 用2 然 后 , 创 建 您 的 interceptor_migration.BindInterceptorDelegate ( 而 不 是 您在 <strong>VisiBroker</strong> 3.x 中 所 使 用 的 接 收 器 .BindInterceptor) 并 将 它 加 入 序 列 。移 植 客 户 端 和 服 务 器 端 接 收 器在 以 前 的 版 本 中 , 要 加 入 ClientInterceptor 或 ServerInterceptor, 需 要 执 行 以 下步 骤 :1 实 现 接 口 :客 户 端C++移 植 <strong>VisiBroker</strong> 代 码 30-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!