Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1983

JTA 1.2 @TransactionScoped Context doesn't call @Predestroy on TransactionScoped Beans

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 5.0.0.M3
    • Fix Version/s: 5.0.0.CR1
    • Component/s: JTA
    • Labels:
      None

      Description

      TransactionContext should store the Contextual and CreationalContext instances for each bean instance it creates so that it can destroy the beans on scope destruction.

      One possible implementation would be to register a Synchronization through TransactionSynchronizationRegistry#registerInterposedSynchronization which will destroy the beans when Synchronization#beforeCompletion() is called.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                atzoum Aris Tzoumas
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: