]
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)