| Sven-Jürgen Lämke 2005-01-30, 7:50 am |
| Hi,
see the following example:
prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
prop.put(Context.PROVIDER_URL, "corbaloc::host1:2809,:host2:2809");
Context initialContext = new InitialContext(prop);
try { java.lang.Object myHome = initialContext.lookup("cell/clusters/MyCluster/MyEJB");
myHome = (myEJBHome) javax.rmi.PortableRemoteObject.narrow(myHome, myEJBHome.class);
} catch (NamingException e) { }
More info in IBM WebSphere V5.0 Performance, Scalability, and High Availability WebSphere Handbook Series (sg246198)
No round robin DNS required !
Regards
Sven
"Gennadiy Civil" <gcivil@salmonllc.com> schrieb im Newsbeitrag news:ct8s2v$743i$1@news.boulder.ibm.com...
> Hello:
>
> We have EJBs that need to run in the WAS cluster.
>
> Normally when we specify URL for InitialContext for EJBs we could put
> something like this:
> corbaloc:iiop:10.0.0.88:9812 where 10.0.0.88 is IP address/port of the
> ORB Bootstrap port - correct?
>
> When my EJBs run in the cluster there are two physical IP addresses. Can
> I specify these addresses as a comma-separated list? For example
> corbaloc:iiop:10.0.0.21:9810,corbaloc:iiop:10.0.0.22:9812
>
> I don’t know if this is legal for WebSphere...
>
> Could you please advise.
>
> Should we create round-robin DNS name? In that case how do we handle
> different ports for the nodes in the cluster?
>
> Any help is appreciated
>
> Thanks
> Gennadiy
|