How do I force an application-scoped bean to instantiate at application startup?
问题 I can\'t seem to find a way to force an application-scoped managed bean to be instantiated/initialized when the web app is started. It seems that application-scoped beans get lazy-instantiated the first time the bean is accessed, not when the web app is started up. For my web app this happens when the first user opens a page in the web app for the first time. The reason I want to avoid this is because a number of time-consuming database operations happen during the initialization of my