2 Replies Latest reply on Oct 5, 2007 11:11 AM by jaikiran

    Global namespace: Client network restriction

      Hello,

      Is there any restriction on the client that looks up objects from the global namaspace? I have read this article http://jbossupdate.sadalbari.com/2007/07/ and author says that
      "objects bound in global namaspace are available to any lookup on the SAME network". Is there such restriction or the client may be anywhere on the internet?

      And what about invoking bind/rebind? Are there any restrictions on the client?

      Thank you for your reply

        • 1. Re: Global namespace: Client network restriction
          jaikiran

          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

            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);