title: EJB properties file
body: <p>In my project I have 2 modules, a ejb and a war module. In the war module i have a properties file that is processed when I start the web application (by a listener). For each property in this properties file, i add it to the servlet context.
  So, my question is: is it possible to access this properties, in the servlet context, from a enterprise java bean in the ejb module? I want to do something like this, but in a ejb:</p>
  
  <pre><code>ServletContext sc = myservlet.getServletContext(); 
  String xpto =  sc.getAttribute("my-attr");
  </code></pre>
  
  <p>If this is not possible, what is the alternative?
  Thanks!</p>
  
  <p>P.S I'm using netbeans and glassfish.</p>