Björn Schmidt created DELTASPIKE-766: ----------------------------------------
Summary: 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 methog of producer being called 3. predestroy being called but with the testcontrol module only 1,2 and 3 happens, 3 and 4 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)