You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Rafael Benevides (JIRA)" <ji...@apache.org> on 2014/04/24 19:35:17 UTC
[jira] [Comment Edited] (DELTASPIKE-372) WeldContainerControl
should stop contexts during shutdown
[ https://issues.apache.org/jira/browse/DELTASPIKE-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979992#comment-13979992 ]
Rafael Benevides edited comment on DELTASPIKE-372 at 4/24/14 5:34 PM:
----------------------------------------------------------------------
It seems that after updating Weld to 1.1.19.Final the contexts invalidations are working fine.
I added _Assert.assertTrue(CarRepair.isPreDestroyCalled()); and Assert.assertTrue(Car.isPreDestroyCalled());_ to *testShutdownWithInactiveContexts* after _cdiContainer.getContextControl().stopContexts();_ line and the tests are working fine which means that the contexts are being destroyed and the beans have their callback methods called.
was (Author: rafabene):
It seems that after updating Weld to 1.1.19.Final the contexts invalidations are working fine.
I added _Assert.assertTrue(CarRepair.isPreDestroyCalled()); and Assert.assertTrue(Car.isPreDestroyCalled());_ to *testShutdownWithInactiveContexts* after _cdiContainer.getContextControl().stopContexts();_ line and the tests are working fine.
> WeldContainerControl should stop contexts during shutdown
> ---------------------------------------------------------
>
> Key: DELTASPIKE-372
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-372
> Project: DeltaSpike
> Issue Type: Bug
> Components: CdiControl
> Affects Versions: 0.3-incubating
> Reporter: Martin Kouba
>
> As described in DELTASPIKE-370 the Weld core does only invalidate application context during shutdown. Given that the other started contexts are not invalidated properly.
--
This message was sent by Atlassian JIRA
(v6.2#6252)