[ https://issues.apache.org/jira/browse/DELTASPIKE-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194500#comment-14194500 ]
Gerhard Petracek commented on DELTASPIKE-766: --------------------------------------------- i can't reproduce it -> please provide a link to a demo-app which illustrates the issue. just fyi: if you aren't sure about an issue, you are very welcome to ask on our (users-)mailing-list. > Created beans don't seem to get destroyed when using CdiTestRunner > ------------------------------------------------------------------ > > Key: DELTASPIKE-766 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-766 > Project: DeltaSpike > Issue Type: Improvement > Components: TestControl > Affects Versions: 1.0.3 > Reporter: Björn Schmidt > Priority: Minor > > I'm using the CDITestRunner in order to test some long running imports using > Weld-Se. During the import a "SessionProducer" is producing ~1k db sessions > (has nothing to do with web session) in a loop via Instance.get(). > On a live system this is resutling in 1k calls to the following methods > 1. producer method of session producer being called > 2. postconstruct method of session being called > 3. work done > 4. disposes method of producer being called > 5. predestroy of session being called > but with the testcontrol module only 1,2 and 3 happens, 4 and 5 are never > called, not even when weld shuts down. Only the predestroy method of the > producer is called in which I then have to collect and close all 1k created > sessions. > Question: is this a bug, supposed to be this way, or a configuration problem? -- This message was sent by Atlassian JIRA (v6.3.4#6332)