[webbeans-dev] Application scope not active

Pete Muir pmuir at redhat.com
Thu Dec 4 12:13:18 EST 2008


I assume it's not active when none of these things are happening (i.e.  
the application is idle). But yes, having this thread local for the  
application scope isn't important like it is for the others (e.g.  
request)


On 4 Dec 2008, at 17:08, Nicklas Karlsson wrote:

> 9.6.3 in the 20081203 specs lists when the Application scope is  
> active:
>
> • The application scope is active during the service() method of any
> servlet in the web application.
> • The application scope is active during any Java EE web service  
> invocation.
> • The application scope is also active during any remote method
> invocation of any EJB bean, during any call to an EJBtimeout method
> and during message delivery to any EJB message driven bean
>
> When is the application scope *not* active?
>
> The specs says that "The application context is shared between all
> servlet requests, web service invocations, EJB remote method
> invocations,EJB timeouts and message deliveries to message driven
> beans that execute within the same application". But apparently the
> application context active state is not shared? I can't recall Pete's
> motivation, but I recall changing the active to a ThreadLocal.
> Apparently it not "always on", and the states (application scope and
> others) should be flipped according to the lifecycle rules in the
> specs?
> ---
> Nik
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev





More information about the weld-dev mailing list