hi mark,

as i see - the ELContextStore is just for dependent beans.
@NormalScoped beans aren't affected (see ELContextStore#addDependent).

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces



2010/7/23 Mark Struberg <[email protected]>

> Hi!
>
> I don't really understand the ELContextStore which is used in the
> WebBeansELResolver.
>
> It seems to cache all beans which are invoked via EL. So far so good (but
> the
> algorithm needs improvement).
> But what I absolutely not understand is why it releases all those beans at
> the
> end of each request. This leads to invoking @PreDestroy to those beans
> after
> every EL encapsulation
>
>
> My first bet is that this was an attempt to resolve 6.4.3. Dependent
> pseudo-scope and Unified EL, isn't?
>
> This defines that in a complex EL statement, multiple references to the
> same
> @Dependent scoped bean must always get the same Contextual instance of this
> very
> bean. And for those @Dependent scoped beans it is also ok to destroy them,
> because they don't 'hang' on some NormalScoped bean.
>
> But we must not treat @NormalScoped beans this very way!
>
> wdyt?
>
> LieGrue,
> strub
>
>
>
>
>

Reply via email to