java RMI与非java实体通信? [英] java RMI communication with non java entity?
问题描述
是否可以通过 RMI 协议与非 java 实体通信RMI IIOP 有什么特别之处?
谢谢
老问题但是,因为google排名高而回答了
我不认为你可以轻松做到这一点.
作为 Java-RMI 的替代方案,我推荐 XML-RPC.>
然后,您可以使用 Python、C++、Objective-C、Erlang、Groovy、Java、JavaScript、PHP 等进行通信.
在 Java 方面,您可以使用 Apache XML-RPC 库.
Pro:针对不同语言的多种实现
缺点:XML-RPC 确实知道原语和 base64 编码的二进制文件.它们不会处理您复杂的 Java 对象,但会给您一个 Map.您需要自己将它们映射到您的对象.---
Is it possible to communicate with non java entity sing RMI protocol What is special about RMI IIOP?
Thx
Old question but, but answered because of high google ranking
I don't think you could do this easily.
As an alternative to Java-RMI I would recommend XML-RPC.
You can then communicate with Python, C++, Objective-C, Erlang, Groovy, Java, JavaScript, PHP and many more.
On the java side you can use the Apache XML-RPC library.
Pro: many implementations for different languages
Con: XML-RPC does know primitives and base64 encoded binaries. They will not handle your complex Java objects but give you a Map. You need to map them to your Objects by yourself.---
这篇关于java RMI与非java实体通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!