JAVA、JavaSpaces 中的进程通信

发布于 2024-11-09 01:07:10 字数 884 浏览 4 评论 0 原文

两个 Java 程序必须相互通信,为此,我发现了两种可能性

  • 使用套接字
  • 使用 JavaSpaces

在查看描述后,我发现 JavaSpaces 显然是更好的解决方案。可悲的是,我无法让它运行。曾经的totourial使我扎根于另一个安装过程、其他文件等等....:(

如何安装JavaSpaces,在哪里下载它们等?

如果有人为我提供更好的解决方案,我会很感激(JavaSpaces似乎从 2005 年开始)

这是我迄今为止找到的网站: http://www.jroller.com/matsh/entry/intreagued_by_javaspaces_try_blitz (安装说明,不起作用......) http://www.jini.org/wiki/Main_Page (下载链接已损坏) http://www.jarvana.com/jarvana/inspect/com/sun/jini/jini-starterkit/2.1/jini-starterkit-2.1.zip?folder=jini2_1/ (下载jini入门套件)

Two Java programs have to communicate with each other, To do that I found two possibilities

  • Using Sockets
  • Using JavaSpaces

After looking into the description, I found out, that JavaSpaces is apparently the better solution. Sadly, I can't get it to run. Ever totourial roots me to another installation process, to other files and so on.... :(

How to install JavaSpaces, where to download them etc?

If someone offers me a better solution for it I'll be thankful to (JavaSpaces seems to be from 2005)

this are the websites I found so far:
http://www.jroller.com/matsh/entry/intreagued_by_javaspaces_try_blitz
(Installation description, not working...)
http://www.jini.org/wiki/Main_Page
(Download links are broken)
http://www.jarvana.com/jarvana/inspect/com/sun/jini/jini-starterkit/2.1/jini-starterkit-2.1.zip?folder=jini2_1/
(Download of jini starter kit)

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

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

发布评论

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

评论(3

初见你 2024-11-16 01:07:10

要快速开始使用 GigaSpaces(一种商业 JavaSpaces 产品(提供社区版)),请参阅 http://www.gigaspaces.com/wiki/display/XAP8/Data+Grid+Quick+Start

另请参阅http://replay.waybackmachine.org/20070202031207/http://www.theserverside.com/tt/articles/article.tss%3Fl%3DUsingJavaSpaceshttp://www.theserverside.com/news/thread.tss?thread_id=42164http://www.enigmastation.com/?page_id=425

JavaSpaces 很棒,IMO(我有偏见,因为我在 GigaSpaces 工作......但话又说回来,我为 GigaSpaces 工作是因为我认为底层技术很棒。) - 它有一个非常简单的 API,但事务模型实际上非常强大,而且速度非常快。它比 JMS 更简单、更强大,并且具有更简单的部署/连接模型。

如果你出于某种原因不喜欢 GigaSpaces(“哎呀,有人从中赚钱”),你也可以看看 Blitz。

For one quick start using GigaSpaces, a commercial JavaSpaces product (with a community edition available), see http://www.gigaspaces.com/wiki/display/XAP8/Data+Grid+Quick+Start

Also see http://replay.waybackmachine.org/20070202031207/http://www.theserverside.com/tt/articles/article.tss%3Fl%3DUsingJavaSpaces and http://www.theserverside.com/news/thread.tss?thread_id=42164 and http://www.enigmastation.com/?page_id=425

JavaSpaces is great, IMO (I'm biased, as I work for GigaSpaces... but then again, I work for GigaSpaces because I think the underlying technology is great.) - it's got a very simple API but the transaction model is actually pretty strong, and it's very fast. It's simpler and stronger than JMS, and has a simpler deployment/connection model.

If you're GigaSpaces-averse for some reason ("yikes, someone makes money from this") you can look into Blitz as well.

深陷 2024-11-16 01:07:10

2009 年 2 月,SO 上的另一位用户提到,GigaSpaces 是JavaSpaces。

看着那个老问题,我开始相信 JavaSpaces 已经死了..!?

In Feb 2009 another user on SO mentioned, that GigaSpaces is a mature version of JavaSpaces.

Looking at that older question, I start believing that JavaSpaces is dead..!?

逆光飞翔i 2024-11-16 01:07:10

您是否考虑过使用 RMI 之类的东西,这样您在远程系统上调用方法的事实就变得透明了?
或者 JMS,您只需发送和读取消息 - 基础设施将它们路由到正确的位置/进程?
或者另一种方法怎么样,你有一个网络缓存(例如memcached),两个进程都可以在缓存中放入和获取项目——从而在一定程度上允许进程间通信?

Have you considered also using something like RMI where it becomes transparent the fact that you are invoking a method on a remote system?
Or JMS where you just send and read messages -- and the infrastructure routes them to the right place/process?
Or how about another approach where you have a network cache (e.g. memcached) where both processes can put and get items to/from the cache -- thus allowing for inter-process communication to a certain extent?

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