[jboss-jira] [JBoss JIRA] (WFLY-3775) @TransactionAttribute ignored on non-public methods.

Sławomir Wojtasiak (JIRA) issues at jboss.org
Tue Aug 26 14:13:00 EDT 2014


Sławomir Wojtasiak created WFLY-3775:
----------------------------------------

             Summary: @TransactionAttribute ignored on non-public methods.
                 Key: WFLY-3775
                 URL: https://issues.jboss.org/browse/WFLY-3775
             Project: WildFly
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB
    Affects Versions: 8.1.0.Final
         Environment: SunOS, JDK1.7.
            Reporter: Sławomir Wojtasiak
            Assignee: David Lloyd
            Priority: Minor


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)



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)



More information about the jboss-jira mailing list