This content has been marked as final.
Show 2 replies
-
1. Re: Global namespace: Client network restriction
jaikiran Oct 5, 2007 11:09 AM (in response to kadlecp)The JNDI lookup is done based on the properties passed to the Context:
Hashtable props = new Hashtable(); props.put(Context.PROVIDER_URL,"jnp://xxx.yyy.zzz.xxx:1099"); Context ctx = new InitialContext();
The PROVIDER_URL mentions the server:port where the JNDI lookup has to be done. So as long as the client which is doing this lookup has access to the xxx.yyy.zzz.xxx:1099 server/port, it can lookup the objects from the Global JNDI namespace. -
2. Re: Global namespace: Client network restriction
jaikiran Oct 5, 2007 11:11 AM (in response to kadlecp)Slight correction to the code that i posted ( i had missed out passing the props to the InitialContext constructor):
Hashtable props = new Hashtable(); props.put(Context.PROVIDER_URL,"jnp://xxx.yyy.zzz.xxx:1099"); Context ctx = new InitialContext(props);