質問

以下の問題でいくつかの助けが必要です

2台のマシンがあり、これらの各マシンには2つのWebSphereセルが設置されています。 機械1(X1およびX2セル) 機械2(Y1とY2セル)

X1セルには、EJBクライアントコンポーネントが設置されています。これは、4セル、X2、Y1、Y2のそれぞれにインストールされているEJBコンポーネントでビジネスメソッドを呼び出します。 EJBクライアントコンポーネントはInitalContextクラスを使用して、IIOP URLルックアップを使用してホームインタフェースを検索します。

B1とB2を使用したEJBクライアントコンポーネントの通信は、問題なく適切に行われます。しかし、X2セルとの通信は正しく起こりません(ログ内のホームインタフェースのルックアップの問題は見られません)、どういうわけかx1サーバ自体でビジネスメソッドを呼び出します。

main()メソッドを使用して4つすべてのサーバーを呼び出すプレーンJavaクライアントがありました。このセットアップは2年間生産で稼働していました。しかし、問題は始まって以来、Main()ではなくWebアプリケーションに4つのサーバーの呼び出しのロジックを移動しました。

x1とx2が同じ物理マシン上にあるのはどのような違いになりますか?

役に立ちましたか?

解決

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

他のヒント

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).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top