Websphere 6.1:使用 IIOP 的多个单元调用中的问题

发布于 2024-12-29 10:43:43 字数 504 浏览 5 评论 0原文

需要有关以下问题的帮助

我们有 2 台机器,每台机器中安装了 2 个 websphere 单元。 机器 1(X1 和 X2 单元) 机器 2(Y1 和 Y2 单元)

我们在 X1 单元上安装了 Web 应用程序,该应用程序具有 EJB 客户端组件,该组件调用安装在 4 个单元(即 X1、X2、Y1 和 Y2)上的 EJB 组件上的业务方法。 EJB 客户端组件使用 IIOP URL 查找和 InitalContext 类来查找 home 接口。

EJB 客户端组件与 B1 和 B2 的通信正常进行,没有任何问题。但是与 X2 单元的通信没有正确发生(在日志中没有看到任何家庭接口查找问题),它以某种方式调用 X1 服务器本身上的业务方法。

我们有一个普通的 Java 客户端,它使用 main() 方法来调用所有四个服务器。这个设置已经完成并完成了。生产运行2年。但自从我们将调用四个服务器的逻辑移至 Web 应用程序中而不是 main() 后,问题就开始了。

X1和X2在同一台物理机上有什么区别?

Need some help with below issue

We have 2 machines, each of these machines has 2 websphere cells installed in it.
Machine 1 (X1 and X2 cell)
Machine 2 (Y1 and Y2 cell)

We have web application installed on X1 cell, which has EJB client component, which invokes business methods on EJB component installed on each of 4 cells i.e. X1 , X2 , Y1 and Y2. EJB client component look-ups the home interface using IIOP URL look-up, using InitalContext class.

Communication of EJB client component with B1 and B2 happens, properly, without any issues. But communication with X2 cell, does not happens properly (does not see any home interface look-up problems in logs), it somehow calls business methods on X1 server itself.

We had a plain Java client which uses main() method to invoke all four servers. This setup was up & running in production for 2 years. But the problem started since we moved the logic of invocation of four servers in Web application instead of main().

What difference does it makes that X1 and X2 are on the same physical machine?

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

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

发布评论

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

评论(2

用心笑 2025-01-05 10:43:43

如果服务器具有相同的名称,那么我怀疑您需要在“在同一主机上运行的两个具有相同名称的服务器用于这篇信息中心文章的互操作”:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rtrb_namingprobs.html

If the servers have the same name, then I suspect you need the com.ibm.websphere.orb.uniqueServerName property specified in the "Two servers with the same name running on the same host are being used to interoperate" of this InfoCenter article:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rtrb_namingprobs.html

流年已逝 2025-01-05 10:43:43

我在测试系统上曾经遇到过这个问题。如果 WebSphere(错误地)确定 EJB 实际上在本地服务器中运行,则会发生这种情况。就我而言,这发生在两台服务器在同一主机上运行并配置了相同的服务器名称(server1)时。不幸的是,我不知道任何解决方案(除了使用不同的服务器名称重新安装其中一台服务器)。

I encountered this problem once on a test system. It occurs if WebSphere (incorrectly) determines that the EJB actually runs in the local server. In my case this occurred with two servers running on the same host and configured with the same server name (server1). Unfortunately I don't know any solution (other than reinstalling one of the servers with a different server name).

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