title: How to access deployment parameter from within EJB
body: <p>In a Java EE 6 Web application, I would like to access a deployment parameter (a string value) from within an <code>EJB</code>.</p>
  
  <p>I know that I can define a Context Parameter in <code>web.xml</code> descriptor, and I'll be able to access it through <a href="http://docs.oracle.com/javaee/6/api/javax/faces/context/ExternalContext.html#getInitParameterMap%28%29" rel="nofollow">javax.faces.context.ExternalContext#getInitParameterMap()</a>, when I am in a <code>JSF</code> bean, and through <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/GenericServlet.html#getServletContext%28%29" rel="nofollow">getServletContext()</a> from within a <code>Servlet</code>, but this is not the case, indeed, because I am in an <code>EJB</code>.</p>
  
  <p>So, the question is: is there any standard (and possibly clean) way to accomplish this goal?</p>