Java RMI服务器和Objective C客户端 [英] Java RMI server and Objective C client

查看:95
本文介绍了Java RMI服务器和Objective C客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个java rmi服务器和一个客观的C客户端。我想使用RMI到HTTP隧道,以便将RMI调用封装到HTTP请求中,其中RMI servlet处理程序可以将调用转发到相应的rmi服务器。

I have a java rmi server and an objective C client. I want to use RMI to HTTP tunneling in order to encapsulate the RMI calls into HTTP requests where an RMI servlet handler can forward the call into the corresponding rmi server.

但是我我正面临一个问题。比方说,我创建了存根,并使用某个名称(在服务器端)绑定注册表上的存根。

However I'm facing an issue. Let's say for instance that I created the stub and bound the stub on the registry with a certain name (on the server side).

现在在目标C中,我怎么能找到注册表并查找存根?因为在我们有rmi客户端的正常情况下,可以这样做:

Now in objective C, how can I locate the registry and lookup the stub? because in normal cases where we have an rmi client, it can be done this way:

注册表注册表= LocateRegistry.getRegistry(host);
Hello stub =(Hello)registry.lookup(HelloServer);
,这些不是远程过程调用,我可以在http请求中发送服务器来处理它们。

Registry registry = LocateRegistry.getRegistry(host); Hello stub = (Hello) registry.lookup("HelloServer"); and these are not remote procedure calls that I can send in http requests for the server to handle them.

那么如何在目标C客户端中找到服务器远程对象?

So how can I "locate" the server remote object in an objective C client?

任何帮助都是感谢,如果您需要更多信息,请告诉我。

Any help is appreciated and if you need more information please tell me.

推荐答案

您无法做到这一点。 RMI / JRMP需要JVM。 RMI / IIOP需要服务器上的JVM和客户端上的ORB(JVM包含服务器的ORB)。 IDL在客户端也需要ORB,您必须使用完全详细的CORBA API。

You can't do this. RMI/JRMP requires a JVM. RMI/IIOP requires a JVM at the server and an ORB at the client (JVM contains an ORB for the server). IDL requires an ORB at the client as well, and you have to use the fully detailed CORBA API.

这篇关于Java RMI服务器和Objective C客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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