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

CDI @Inject doesn't work in CompensationHandler et al

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.M3
    • Component/s: Compensations
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paul.robinson Paul Robinson
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: