No Claudio, you have to use a Servlet that initialize it (maybe simply referincing it via FacesContext).
Another solution is to create a new ServletContextListener and use the contextInitialized() method to initialize your factory.

bye

Claudio Tamietto wrote:
i'm tryng to use jpox and jsf and i have used a managed bean at application scope for initialize the PersistenceManagerFactory.
This activity is very time consuming and start only when the first user request reference the bean. is there a way to initialize the bean
at application startup and not at the first reference ?

--
Pierpaolo Follia

Reply via email to