JSF application scope instantiation and injection
问题 Probably my question is a trivial one, but I never used an application scope bean before. I need the application bean because I have to do time consuming transactions on the database. my search didn't satisfy my curiosity at all. I don't know why but I didn't manage to initialize the bean (it is null) or it the app crashed. So I have an application scope bean @ManagedBean(eager=true) @ApplicationScoped public class ApplicationContainer { ... } eager=true I read that tells JSF to initiate the