Why j2sdkee1.3.1 support JNDI lookup "java:comp/env" from remot


General J2EE: Why j2sdkee1.3.1 support JNDI lookup "java:comp/env" from remot

  1. Hi:
      I have been puzzled by this function of j2sdkee1.3.1 support JNDI lookup "java:comp/env" from client. I always think that "java:comp/env" namespace can only be access by the application server self for it is a private namespace. The weblogic and websphere doest support this.

    John Lee
  2. about java:comp/env[ Go to top ]

    i think java:comp/env means: to resovle this name, look into the deployment descriptor of the application. So even if this part of the application runs on the client, the reference is still resolved using the deployment descriptor.

    It's like each application can name the remote things it needs whatever it likes to call them. The deployment descriptor contains the real jndi name of the applications logical names.

    This means the deployment descriptor content is also available on the client machine.