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