远程 ejb 调用陷入 Linux 服务器的查找中

发布于 2024-12-04 11:15:55 字数 384 浏览 4 评论 0原文

我使用 glassfish 3.1.1 和通过 java web start 调用的应用程序客户端容器。 我的程序不工作,它仍然粘在lookup()中并且永远不会通过它。

        Context c = new InitialContext()
        geo = (GeoBeanRemote) c.lookup("java:global/server_side/server-ejb/GeoBean");
        System.out.println("end lookup");

我已经在 Windows 服务器中对此进行了测试,并且它工作得很好,但是现在,在生产服务器(ubuntu 11.04)中却没有。 我该如何解决这个问题?

谢谢。

I'm using glassfish 3.1.1 with an application client container called via java web start.
My program is not working , it remain glued in the lookup() and never pass it .

        Context c = new InitialContext()
        geo = (GeoBeanRemote) c.lookup("java:global/server_side/server-ejb/GeoBean");
        System.out.println("end lookup");

I have already tested this in a windows server and it worked perfelcty but now , in the production server (ubuntu 11.04) it doesn't .
How can i fix this ?

Thanks.

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

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

发布评论

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

评论(1

霞映澄塘 2024-12-11 11:15:55

听起来您可能遇到一些路由问题。我建议验证您的 RMI 端口是否打开。默认值为 3700。

It sounds like you might be having some routing issues. I suggest verifying your RMI port is open. The default is 3700.

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