如何编写基于C ++的项目的基于OSGi的项目? [英] How to Compose OSGi Based project with C++ based project?

查看:255
本文介绍了如何编写基于C ++的项目的基于OSGi的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我扩展一个项目,它已经启动与C ++语言。现在我正在开发一个新的项目部分。它将基于OSGi(Java)。
现在我想知道有什么稳定的方法来组成旧的项目与新的部分?是否有任何步骤可以将C ++对象转换为OSGi捆绑(或具有类似的结构和元数据)?

I am extending a project that it has been initiated with C++ language. Now I am developing a new part of the project. and it will be based on OSGi (Java). Now I want to know is there any stable method to compose the old project with new part? Is there any steps that can convert C++ objects to OSGi bundles (or with similar structure and metadata)? Or is there any way to have communication between them?

推荐答案

虽然它不是C ++,但是纯C,你可以检查 Apache Celix 。 Apache Celix是C中的OSGi规范的实现,没有对任何Java实现等的依赖。目前Celix仍在孵化阶段。

Although it isn't C++, but plain C, you might check out Apache Celix. Apache Celix is an implementation of the OSGi specification in C, without a dependency to any Java implementation or such. Currently Celix is still in the incubation phase.

关于C和Java之间的沟通,Celix的(短期)todo列表中的一个项目是OSGi远程服务。我们打算使用hessian作为实现,因为它已经存在于许多其他语言,是相对简单,二进制和紧凑。这为分布式系统以及C - Java通信提供了一个解决方案。

Regarding communication between C and Java, one of the items on the (short term) todo list of Celix is an implementation of the OSGi Remote Services. We intend to use hessian as implementation since it already exists in many other languages, is relatively simple, binary and compact. This provides a solution for distributed systems as well as C - Java communication.

这篇关于如何编写基于C ++的项目的基于OSGi的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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