Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
It appears that JBoss EAP behaves as the @TransactionAttribute attribute was inherited.
For example if I have a bean A that
@Stateless @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public class ABean extends Base{ public void foo(){ . . .} }
and a supper class
@TransactionAttribute(TransactionAttributeType.SUPPORTS) public class Base { @TransactionAttribute(TransactionAttributeType.NEVER) public void foo(){ . . } public void bar(){ . . .} }
and if I call each method
beanA.bar(); beanA.foo();
I would expect to see bar() without an active transaction and foo() with an active transaction
but what I see is that both method have no active transaction. This seems like spec violation since the @TransactionAttribute are not supposed to be inherited.
Attachments
Issue Links
- clones
-
JBEAP-9952 @TransactionAttribute should not be inherited per EJB 3.2 spec
- Verified