EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification. 
X Wiki
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EZB-16
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Florent BENOIT
Reporter: Florent BENOIT
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
EasyBeans

TransactionAttribute with class / superclass

Created: 04/Jul/06 02:03 PM   Updated: 19/Feb/10 03:46 PM
Component/s: Transaction
Affects Version/s: EasyBeans 1.0 M1
Fix Version/s: EasyBeans 1.0 M2


 Description  « Hide
EasyBeans was not respecting 13.7.1 chapter when an attribute is defined on a super class. The method was receiving transaction attribute of the subclass.

Test reproducing the problem :
org.objectweb.easybeans.tests.transaction.containermanaged.stateless / TestInheritance / testClassDefinition

Spec :

If the bean class has superclasses, the following additional rules apply.
• A transaction attribute specified on a superclass S applies to the business methods defined by S.
If a class-level transaction attribute is not specified on S, it is equivalent to specification of
TransactionAttribute(REQUIRED) on S.
• A transaction attribute may be specified on a business method M defined by class S to override
for method M the transaction attribute value explicitly or implicitly specified on the class S.
• If a method M of class S overrides a business method defined by a superclass of S, the transaction
attribute of M is determined by the above rules as applied to class S.

 All   Comments   Change History   Related Builds      Sort Order:
Florent BENOIT - 04/Jul/06 02:05 PM
Fixed


Copyright © 2006-2007 EasyBeans / ObjectWeb consortium

http://www.easybeans.org