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

CDI @Inject doesn't work in CompensationHandler et al

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 5.0.0.M3
    • None
    • Compensations
    • None

    Description

      org.jboss.narayana.compensations.impl.Participant uses class.newInstance to create the handler instance. This means that Weld does not handle the @Inject annotation.

      Creating the instance via the BeanManager solves this problem.

      Attachments

        Activity

          People

            paul.robinson@redhat.com Paul Robinson
            paul.robinson@redhat.com Paul Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: