if i undestand your answer i have to subclass the class
org.apache.myfaces.webapp.StartupServletContextListener
and override contextInitialized. Correct ?
----- Original Message -----
Sent: Tuesday, June 07, 2005 11:00 AM
Subject: Re: initialize a mangaged bean in application scope at applicationstartup

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