I'm having trouble getting the basic JNDI configuration in Glassfish.
I have something that I think should be a simple task: at runtime, determine if a particular property is set to true or not. I think this is a good JNDI application, but it seems it cannot find the correct path between the application server and the servlet code.
This is how I set up the property in Glassfish:

In my servlet code, I am trying to find the value with:
Boolean enabled = (Boolean) ctx.lookup("java:global/arizona/quartz_enabled");
In addition to this path, I also tried the following without success:
- Java: global / arizona / arizona / quartz_enabled
- Java: module / arizona / quartz_enabled
- Java: module / arizona / arizona / quartz_enabled
My application is called Arizona, but it deploys in the root context, if that matters.
I'm sure it's just a matter of determining the right namespace to achieve the property, but I feel like I'm just shooting in the dark trying to find it. Is there an easy way to view the JNDI tree in Glassfish?
George Armhold
source share