hi,

as mentioned in the wiki it gets triggered lazily. the latest point for it
is the first jsf request.
(logic which doesn't need an up and running cdi container can be
implemented via a StartupEventBroadcaster.)

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2011/12/1 oversteer <brendanhealey...@yahoo.co.uk>

>
> Hi, I want to make an @Named @ApplicationScoped bean eagerly load, like the
> equivalent of
> the EJB @Startup annotation, but I can't figure out how to do it. I saw
> something that suggested
> that I needed a method like this, but it doesn't seem to work:
>
> protected void eagerlyLoad(@Observes StartupEvent startupEvent) {
> }
>
> I understand that the CDI spec is somewhat vague about this, hence looking
> to CODI for a
> solution.
>
> Thanks for any help.
> --
> View this message in context:
> http://old.nabble.com/CODI-%40ApplicationScoped-bean-eager-loading--tp32898071p32898071.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to