如何与仅提供来自 C++ 的 JTAPI API 的第三方模块进行交互?
我支持一个用 C++ 编写的大型系统,现在我们的应用程序需要与仅提供 JTAPI 接口的第三方系统进行通信。看来我一直在用 Java 编写一个 JTAPI 代理,一方面与 JTAPI 交互,另一方面与一些语言无关的 API 交互。然而,这感觉应该是一个已解决的问题,我不想不必要地重新发明轮子。从 C++ 连接 JTAPI 的最佳解决方案是什么?这样的代理是否已经存在,或者是否有不需要 Java 层的解决方案?
I'm supporting a large system written in C++ and we now have a requirement for our application to talk with a third party system which only provides a JTAPI interface. It would appear that I am stuck writing a JTAPI proxy in Java that talks JTAPI on one side and some more language-neutral API on the other. However, this feels like it should be a solved problem and I don't want to unnecessarily re-invent the wheel. What is the best solution to interface to JTAPI from C++? Does such a proxy already exist, or perhaps is there a solution that does not require a Java layer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本文展示了一种从C++。
您还可以考虑将 JVM 嵌入到您的 C++ 程序中。 此页面讨论了一种可能的方法来做到这一点。另请参阅:将 Java 代码嵌入到您的本机应用程序中
如果您的 C++ 系统提供 API,那么更简单的方法是编写一个包装 C++ API(使用 JNI)的 Java 程序,并从那里调用 JTAPI 库。
This article shows a way to call Java objects from C++.
You can also think of embedding the JVM in your C++ program. This page talks about a possible way to do this. Also see: Embed Java code into your native apps
If your C++ system provides an API, then the easier approach is to write a Java program that wraps the C++ API (using JNI) and call the JTAPI library from there.