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

JTA CDI to emit the CDI TransactionScoped @BeforeDestroy event

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 5.12.0.Final
    • 5.9.5.Final
    • JTA
    • None

    Description

      The current JTA CDI extenstion works only with CDI @Initialized and @Destroyed event (https://github.com/jbosstm/narayana/blob/5.10.6.Final/ArjunaJTA/cdi/classes/com/arjuna/ats/jta/cdi/NarayanaTransactionManager.java#L148) but not emit the event for @BeforeDestroyed.
      The reason is that the CDI API version used in Narayana is for 1.2 (https://github.com/jbosstm/narayana/blob/master/pom.xml#L458) while the annotation @BeforeDestroyed was introduced in CDI version 2.0.

      Narayana should move to CDI version 2.0 and start emitting the @BeforeDestroyed event as well.

      See more description on the functionality at http://jbossts.blogspot.com/2019/04/jta-and-cdi-integration.html (New Narayana CDI features).

      The

      Attachments

        Issue Links

          Activity

            People

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: