dcsimg
IBM Websphere, JNDI, lookup from remote server
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   YUCHING_KYOKO
Posted On:   Thursday, August 21, 2003 07:16 PM

How i gonna lookup from other remote machine? I try the source code below but still get an NamingException; Name not found.Any one suggestion ? Or others thing i need to set?

			
Hashtable hash = new Hashtable();

hash.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");

hash.put(Context.PROVIDER_URL,"iiop://xxxx:2809/");

InitialContext ctx = new InitialContext(hash);
ref=ctx.lookup("ejb/com/csl/EJBSysHome");

Re: IBM Websphere, JNDI, lookup from remote server

Posted By:   Glenn_Silverberg  
Posted On:   Friday, November 21, 2003 08:07 AM

I've found that I need to prepend something like the following to the JNDI name:

"cell/nodes/my_machine_name/servers/server1/"

This only seems necessary when doing the lookup from a remote machine. Do a dumpNameSpace to see the full path that you'll need.

Re: IBM Websphere, JNDI, lookup from remote server

Posted By:   Sridhar_Koduri  
Posted On:   Tuesday, September 2, 2003 06:27 AM

You have to use IBM JDK which has the correct IIOP ORB implementation.

Re: IBM Websphere, JNDI, lookup from remote server

Posted By:   Laurent_Mihalkovic  
Posted On:   Monday, August 25, 2003 10:40 AM

did you make sure it does work from inside the same machine before trying from a remote one? for all you know, it could be the mapping inside the deployment descriptor that is not correct.

cheers,
laurent

About | Sitemap | Contact