-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Context applicationContext = getCurrentManager().getContext(ApplicationScoped.class);
destroyContext(applicationContext);
setContextActive(applicationContext);
myApplicationBeanInstance = applicationContext.get(myApplicationBean);
The spec does not require that the application scope can be destroyed and re-created, if fact it could be argued that this behaviour violates the spec, as the application context is supposed to last for the lifetime of the application.