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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.0.0.CR1
    • 5.0.0.M3
    • JTA
    • None

      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.

              rhn-engineering-mmusgrov Michael Musgrove
              atzoum_jira Aris Tzoumas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: