WebSphere Application Server - Re: URL for InitialContext when runnining EJBs in the WAS cluster

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > January 2005 > Re: URL for InitialContext when runnining EJBs in the WAS cluster





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: URL for InitialContext when runnining EJBs in the WAS cluster
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com