title: Configuring and looking up a simple String via JNDI in WebSphere
body: <p>For the configuration of our applications we want to place some of the configuration in the application server.</p>
  
  <p>We are currently using the WebSphere JNDI facility for looking up urls and datasources.</p>
  
  <p>In addition we want to place simple Strings in the application server. We don't want to use the WebSphere "Enviroment variables".</p>
  
  <p>Can the "Resource Environment" be used for such a purpose? If so, how can it be used?</p>
  
  <p>We'd like to get the Strings with:</p>
  
  <pre><code>InitialContext ctx = new InitalContext();
  String myString = (String)ctx.lookup("jndi/string/myString");
  </code></pre>
  
  <p>Are there any more simple alternatives?</p>
  
  <p>We are using WebSphere Application Server 7.</p>