简体   繁体   English

如何在Java服务器和C ++客户端之间制作CORBA?

[英]How to make CORBA between Java server and C++ client?

I came to know that IDL is used for communication between server and client in CORBA, which is independent of languages. 我知道IDL用于CORBA中服务器和客户端之间的通信,而该语言与语言无关。

As far as I know there is a plugin available for Eclipse (for creating the server of CORBA). 据我所知,有一个可用于Eclipse的插件(用于创建CORBA的服务器)。 For C++, OmniORB, Taox and etc., 对于C ++,OmniORB,Taox等,

Suggest me the best tool and best practice for creating client in C++, which is having less dependencies and very good support for Java Server. 向我建议使用C ++创建客户端的最佳工具和最佳实践,它具有较少的依赖关系,并且对Java Server的支持很好。

  1. Define a remote interface in Java. 用Java定义一个远程接口。
  2. Generate a server POA, with rmic -iiop . 使用rmic -iiop生成服务器POA。
  3. Define a server implementation that extends the POA. 定义扩展POA的服务器实现。
  4. Generate the IDL, with rmic -idl. 使用rmic -idl.生成IDL rmic -idl.
  5. Follow the normal steps for your ORB to write your client given the IDL. 按照给定IDL的ORB正常步骤编写客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM