title: accessing a Java Bean from a different Java class
body: <p>I have a Java Bean called appProps defined as an ApplicationScope that is a Hashmap and of the type <code>&lt;string, object&gt;</code>. I can access it via SSJS using the format </p>
  
  <pre><code>var appDesc:String = appProps["some application name"].getAppDesc();
  </code></pre>
  
  <p>and this returns the application description which is stored in one of the fields in the Hashmap Object. </p>
  
  <p>Now I need to call the same process in another JAVA Class.</p>
  
  <p>The definition in the faces-config is:</p>
  
  <pre><code>&lt;managed-bean&gt;
      &lt;managed-bean-name&gt;appProps&lt;/managed-bean-name&gt;
      &lt;managed-bean-class&gt;ca.wfsystems.core.ApplicationMap&lt;/managed-bean-class&gt;
      &lt;managed-bean-scope&gt;application&lt;/managed-bean-scope&gt;
    &lt;/managed-bean&gt;
  </code></pre>