How to configure EJB search in clusterd websphere environment

I am developing an EJB client. The EJB server (2.1) is deployed as a Websphere 6.0 cluster. I am looking for jndi after getting the InitialContent object for a specific IP address using the following code:

Hashtable env = new Hashtable (); env.put (Context.INITIAL_CONTEXT_FACTIORY, com.ibm.websphere.naming.WsnInitialContextFactory "); env.put (Context.PROVIDER_URL," IIOP: //111.111.111.111: 222 "); // this is the IP address of one of the servers a cluster.

then we create an InitialContent object. Now the question is:

How do I make the search return the cluster remote interface to me? By cluster, I mean that the call will not be a direct call to one of the EJB servers, but to the cluster mechanism, which knows about clustered servers. This scream is the main thing, but I cannot find any clear documents about it on the Internet. Has anyone worked with Websphere 6.0 with clustering an EJB environment?

thanks.

+3
source share
2 answers

URL- ,

corbaloc::cluster_host1:RMI_PORT_NO,:cluster_host2:RMI_PORT_NO

cluster_host1 RMI_PORT_NO RMI, 9811 2809.

+3

Source: https://habr.com/ru/post/1710254/


All Articles