Details
-
Bug
-
Resolution: Done
-
Minor
-
8.1.0.Final
-
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)