This content has been marked as final.
Show 3 replies
-
1. Re: Singleton managed-bean
joachimhb May 8, 2009 8:10 AM (in response to coolrb)As far as I know, setting scope to Application will force one copy of the bean. However, it wont get initialized before the first time it is called IIRC.
-
2. Re: Singleton managed-bean
coolrb May 9, 2009 4:23 AM (in response to coolrb)Ok, is there any way to initialize the bean during start up. The problem now for the first time the page loading take lots of time. Also any work around? page loading takes lots of time for the
-
3. Re: Singleton managed-bean
nbelaevski May 9, 2009 8:28 AM (in response to coolrb)Hi,
Use either javax.servlet.ServletContextListener and put your bean into application scope manually or org.jboss.seam.annotations.Startup (available in Seam).