Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5235

CDI interceptors are not called when invoking private observer method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.CR5
    • 9.0.1.Final
    • CDI / Weld
    • None

    Description

      The following code runs with an active transaction on WFLY 8.2.0, but failes with an TransactionRequiredException on WFLY 9.0.1:

      @ApplicationScoped
      public class InitCocktailDemoDataService
      {
      @PersistenceContext
      private EntityManager entityManager;

      @Transactional
      private void createDemoData(@Observes @Initialized(ApplicationScoped.class) Object event)

      { this.entityManager.merge(someEntity); }

      It seems that interceptors aren't called at all - at least for observers of scope lifecycle events.

      Attachments

        Issue Links

          Activity

            People

              mkouba@redhat.com Martin Kouba
              dirkweil Dirk Weil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: