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.
source
share