title: JNDI configuration/lookup in Glassfish
body: <p>I'm having trouble getting some basic JNDI configuration going in Glassfish. </p>
  
  <p>I have what I think ought to be a simple task: at run time, determine if a particular property is set to true or not.  I think this is a good application of JNDI, but can't seem to get the path correct between the app server and my servlet code.</p>
  
  <p>Here's how I have configured the property in Glassfish:</p>
  
  <p><img src="https://i.stack.imgur.com/mMnhQ.png" alt="enter image description here"></p>
  
  <p>In my servlet code, I'm trying to look up the value with: </p>
  
  <pre><code>Boolean enabled = (Boolean) ctx.lookup("java:global/arizona/quartz_enabled");
  </code></pre>
  
  <p>In addition to this path, I've also tried the following without success:</p>
  
  <ul>
  <li>java:global/arizona/arizona/quartz_enabled</li>
  <li>java:module/arizona/quartz_enabled</li>
  <li>java:module/arizona/arizona/quartz_enabled</li>
  </ul>
  
  <p>My app is named "arizona", but deployed to the root context, if that matters.</p>
  
  <p>I'm sure it's just a simple matter of figuring out the proper namespace to reach the property, but I feel like I'm just shooting in the dark trying to find it. Is there a simple way to browse the JNDI tree in Glassfish?</p>