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

Stuart Douglas (JIRA) issues at jboss.org
Wed Jan 7 18:46:30 EST 2015


     [ https://issues.jboss.org/browse/WFLY-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas reassigned WFLY-3775:
------------------------------------

    Assignee: Stuart Douglas  (was: David Lloyd)


> @TransactionAttribute ignored on non-public methods.
> ----------------------------------------------------
>
>                 Key: WFLY-3775
>                 URL: https://issues.jboss.org/browse/WFLY-3775
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 8.1.0.Final
>         Environment: SunOS, JDK1.7.
>            Reporter: Sławomir Wojtasiak
>            Assignee: Stuart Douglas
>            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.11#6341)



More information about the jboss-jira mailing list