Hello together
how can i define a simple Value (String, Integer, Char, Short etc.) in the JNDI Tree. But the Value shall not be packaged in an EAR/WAR/EJB-jar. The Server Administrator shall be responsible for that value, and he must not change values in the Deployment-Package.
In other Words i need somthing like this:
In the EJB:
Context ctx=new InitialContext(); String cfg=(String)ctx.lookup("java:comp/env/MyConfigKey");
<resource-env-ref> <description>Admin, give me a String here please</description> <resource-env-ref-name>MyConfigKey</resource-env-ref-name> <resource-env-ref-type>java.lang.String</resource-env-ref-type> </resource-env-ref>