XCode (Objective C) 和 Java RMI 之间的进程间通信

发布于 2024-12-17 14:48:03 字数 196 浏览 3 评论 0原文

我有一个具有服务实现的 RMI 应用程序,其中包含大量代码,我不想仅仅为了支持 iPhone 应用程序而重做业务逻辑。

有人可以帮助我找到使用 Objective C 访问这些 RMI 服务的最佳方法吗?或者有没有其他方法可以实现这一点,请让我知道这是否是一个可怕的问题,作为一名软件程序员,我希望有一种方法可以让异构程序相互通信,所以这个问题来了我有这个假设。

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦中的蝴蝶 2024-12-24 14:48:03

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

此外,iOS 中的应用程序没有直接的方式相互通信(或者甚至在前台同时运行)。

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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文