Domanda

Hai bisogno di aiuto con il seguente problema

Abbiamo 2 macchine, ognuna di queste macchine ha 2 celle WebSphere installate in esso. Macchina 1 (cella x1 e x2) Macchina 2 (cella Y1 e Y2)

Abbiamo applicazione Web installata su cella X1, che ha il componente client EJB, che richiama i metodi aziendali sul componente EJB installato su ciascuna delle 4 celle I.E. X1, X2, Y1 e Y2. Guardia dei componenti del client EJB L'interfaccia domestica utilizzando la ricerca dell'URL IIOP, utilizzando la classe InItalContext.

Comunicazione del componente client EJB con B1 e B2 avviene correttamente, senza problemi. Ma la comunicazione con la cella X2, non accade correttamente (non vede alcun problema di ricerca interfaccia domestica nei registri), in qualche modo chiamano metodi aziendali su X1 server stesso.

Abbiamo avuto un client Java semplice che utilizza il metodo main() per invocare tutti e quattro i server. Questa configurazione è stata attiva e funzionante in produzione per 2 anni. Ma il problema è iniziato da quando abbiamo spostato la logica dell'invocazione di quattro server nell'applicazione Web anziché principale ().

Che differenza fa che X1 e X2 siano sulla stessa macchina fisica?

È stato utile?

Soluzione

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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top