Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-766

Created beans don't seem to get destroyed when using CdiTestRunner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.0.3
    • None
    • TestControl
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            bes82 Björn Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: