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

@TransactionAttribute ignored on non-public methods.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 9.0.0.Beta1
    • 8.1.0.Final
    • EJB
    • None

    Description

      Currently @TransactionAttribute annotations are allowed only on public methods. It seems to be a reasonable rule because components are accesses by their public interfaces and session beans can be also accessed by a no-interface view that exposes all public methods of the bean class. Nevertheless in case of singletons @PostConstruct and @PreDestroy annotations can be applied to protected methods for instance. In such a case transaction attributes are silently ignored.

      (org.jboss.as.ejb3.component.EJBComponentCreateService:147)

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            slawomir.wojtasiak SÅ‚awomir Wojtasiak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: