[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-2167) @TransactionAttribute declared in superclass is ignore & @TransactionAttribute conflict to Deployment Descriptor
e t (JIRA)
jira-events at lists.jboss.org
Wed Sep 8 11:48:49 EDT 2010
[ https://jira.jboss.org/browse/EJBTHREE-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
e t updated EJBTHREE-2167:
--------------------------
Attachment: src.rar
testing code
> @TransactionAttribute declared in superclass is ignore & @TransactionAttribute conflict to Deployment Descriptor
> ----------------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-2167
> URL: https://jira.jboss.org/browse/EJBTHREE-2167
> Project: EJB 3.0
> Issue Type: Bug
> Components: ejb3
> Environment: jboss-5.1.0.GA
> Sun jdk1.6.0_16
> WinXP 32bit
> Reporter: e t
> Attachments: src.rar
>
>
> According to the EJB3 Specification,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.
> The issue is :
> 1 . When I take the test of a SLSB which has a superclass and its transaction attribute is set to NEVER, I always get the method call in transaction attribute is set to REQUIRED(see the follow code for details).
> 2 . When I deploy an empty ejb-jar.xml and jboss.xml to META-INF directory, the SLSB's transaction attribute is set to SUPPORTS/NOT_SUPPORTEDNEVER
> PS:I using the EntityManager's persist method call for checking current method call is associated with a transaction.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list