Hi Kyle:
Thanks for your reply.
I did a small
test to verify whether its possible to perform lookup between AppServer (same NODE). But I was not sucessful.
Following is the sequence which I am following:
On AppServer 1:
===============
1. Context ctx = new InitialContext();
2. ctx.bind("objName", testObject);
3. Perform lookup to double check:
ctx.lookup("objName") - Sucessful
On AppServer 2: (Same Node)
=============================
1. Context ctx = new InitialContext();
2. Object testObject = (Object) ctx.lookup("objName") - FAILED javax.naming.NameNotFoundException
Then I tried another combination on AppServer 2:
1. Properties p = new Properties()
2. p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
3. p.put(Context.PROVIDER_URL", "iiop://<ip address>:900");
4. Context ctx = new InitialContext(p);
5. ctx.lookup("objName") - FAILED javax.naming.NameNotFoundException
If WebSphere share same namespace then I should be able to perform lookup. Am I missing somethin!
Thanks.
Sushil Singh