title: JSF + Stateless EJB performance
body: <p>I have a JSF 2.0 application running on GlassFish v3. It has EJBs that serve database data via JPA for the main applications sessions. Even on non-IDE app-server, the EJB calls are very slow. Between some pages, the user has to wait over 10 seconds to get to the next page.</p>
  
  <p>The EJB runs on the same application server, and only <code>Local</code> interface is used. The EJB is injected via <code>@EJB</code> annotation.</p>
  
  <p>Any clues?</p>
  
  <p>Thanks in advance,
  Daniel</p>
  
  <p><strong>EDIT</strong> See my answer for solution.</p>