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.
The EJB runs on the same application server, and only Local interface is used. The EJB is injected via @EJB annotation.
Any clues?
Thanks in advance,
Daniel
EDIT See my answer for solution.
The problem was previously, that both
LocalandRemoteinterfaces had been implemented, and only theRemoteinterface was used, however there is no need for that. Both interfaces had the same methods, which is something to avoid according to the NetBeans warning message I got:More detailedly:
So the solution was to remove the
Remoteinterface, and set the application logic to use theLocalinterface.