[
https://issues.apache.org/jira/browse/DELTASPIKE-528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John D. Ament reassigned DELTASPIKE-528:
----------------------------------------
Assignee: John D. Ament (was: Mark Struberg)
> stopContexts() and container shutdown() do not dispose of application scoped
> beans
> -----------------------------------------------------------------------------------
>
> Key: DELTASPIKE-528
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-528
> Project: DeltaSpike
> Issue Type: Bug
> Components: CdiControl
> Affects Versions: 0.5
> Environment: weld se 1.1.16
> Reporter: Shay matasaro
> Assignee: John D. Ament
>
> when using the CdiControl module stopContexts() and container shutdown() do
> not dispose of application scoped beans
> dispose methods are not getting called and same goes for preDestroty
> based on a comment from https://issues.jboss.org/browse/WELD-1072
> I added
> ApplicationContext context =
> BeanProvider.getContextualReference(ApplicationContext.class);
> context.invalidate();
> and that seems to do the trick
> I am not sure if this is a weld issue or a DS?
> does it only apply to application scope?
> maybe stopContexts() can iterate over all 4 builtin contexts and specifically
> invalidate each one if its active?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)