XCode(目标C)和Java RMI之间的进程间通信 [英] Interprocess communication between XCode (Objective C) and Java RMI

查看:95
本文介绍了XCode(目标C)和Java RMI之间的进程间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有服务实现的RMI应用程序,并且其中包含很多代码,我不想重做仅支持iPhone应用程序的业务逻辑。

I have an RMI application that has service implementation and it has a lot of code in it and I do not want to redo the business logic just to support an iPhone app.

有人可以协助我以最佳方式使用Objective C访问这些RMI服务吗?还是有其他方法可以实现这一目标,请让我知道这是否是一个可怕的问题,作为一名软件程序员,我希望异构程序之间会有一种相互通信的方式,所以这个问题来了。

Could someone assist me on a best way to access these RMI services using Objective C? Or is there any other way for making this possible, please let me know if this is a terrible question, being a software programmer, I would expect that there would be a way for heterogeneous programs to communicate with each other, so this question comes to me with that assumption.

推荐答案

iOS中没有Java运行时,SDK中也没有对Java的支持,而Objective- C应用程序无法在设备上启动另一个进程(除非已越狱),因此您的应用程序将无法运行JVM。因此,我知道的唯一其他选择(无需重写Java代码)是通过Web服务使Java功能可用。

There's no Java runtime in iOS, nor any support for Java in the SDK, and an Objective-C app can't start up another process on the device (unless it's jailbroken), so there'd be no way for your app to run a JVM. So the only other option I know of (short of rewriting the Java code) would be to make your Java functionality available via web services.

此外,也没有直接的方法应用程序以在iOS中彼此通信(或与此同时甚至在前台运行)。

Also, there's no direct way for applications to communicate with each other (or for that matter to even be running in the foreground simultaneously) in iOS.

这篇关于XCode(目标C)和Java RMI之间的进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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