I think he means to subclass just a ServletContextListener like in
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
Greetings
Jan
On Wed, 08 Jun 2005 14:47:09 +0200, Claudio Tamietto <[EMAIL PROTECTED]>
wrote:
if i undestand your answer i have to subclass the class
org.apache.myfaces.webapp.StartupServletContextListener
and override contextInitialized. Correct ?
----- Original Message -----
From: Pierpaolo Follia
To: MyFaces Discussion
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