2 Replies Latest reply on May 12, 2003 10:11 AM by letiemble

    jndi

    bautisma

      How do I see all the objects in my jboss server that are bound by JNDI? Is there a way to do it through my client.

      I added the following env-entry to a ejb-jar.xml that is deployed on the server

      <env_entry>
      The tax rate
      <env-entry-name>taxRate</env-entry-name>
      <env-entry_type>java.lang.String</env-entry_type>
      <env-entry_value>none</env-entry_value>
      </env_entry>

      When I try to access taxRate with the following:

      InitialContext iniCtx = new InitialContext();
      Context envCtx = (Context) iniCtx.lookup("java:comp/env");
      String value = (String) envCtx.lookup("taxRate");

      I get an env not bound error