This content has been marked as final.
Show 3 replies
-
1. Re: @ManagedBean(eager=true) with AS 7.1.1
nickarls Nov 9, 2012 7:47 AM (in response to nimo22)Show your imports, which of the annotations are CDI and which JSF?
The JSF @ManagedBean API says
If the value of the
eager()
attribute istrue
, and themanaged-bean-scope
value is "application", the runtime must instantiate this class when the application starts.but then I think the @ApplicationScoped must be JSF and not CDI. @Named I guess is CDI but it shouldn't affect the issue.
Message was edited by: Nicklas Karlsson
-
2. Re: @ManagedBean(eager=true) with AS 7.1.1
nimo22 Nov 9, 2012 8:00 AM (in response to nimo22)Okay I changed it to @Startup@Singleton and it works.
However, I am wondering why it is not working with
@ApplicationScoped.
-
3. Re: @ManagedBean(eager=true) with AS 7.1.1
nimo22 Nov 9, 2012 8:04 AM (in response to nickarls)Oh damned;) Yes you are right. I have had javax.enterprise.context.ApplicationScoped instead of the JSF-counterpart. I make a mistake with it again.
Thank you!!