I was wondering whether the following simple code will work, given that I have:
WebSphere ND.
two application servers acting as web-servers.
two application servers acting as application-servers (as cluster X)
Can I access an EJB deployed on the X cluster, using the following code: InitialContext initialContext = new InitialContext(); MyBeanHome = initialContext.lookup("/cells/clusters/X/MyBeanHome");
or: Will the initialContext demand actually specifing servers from which to download the routing table? That is, define properties for the initialContext etc.
The reason I am asking is because I was wondering if WebSphere somehow made it possible to take use of the cell concept and to allow to jndiLookup somehow without specifying the servers on which we use jndi.