[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2250) Incorrect getRollbackOnly() behaviour for non-transacted bean with inheritance in JBoss 6
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Wed May 25 16:51:00 EDT 2011
[ https://issues.jboss.org/browse/EJBTHREE-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlo de Wolf resolved EJBTHREE-2250.
-------------------------------------
Resolution: Rejected
See EJB 3.1 FR 13.3.7.1:
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??.
> Incorrect getRollbackOnly() behaviour for non-transacted bean with inheritance in JBoss 6
> -----------------------------------------------------------------------------------------
>
> Key: EJBTHREE-2250
> URL: https://issues.jboss.org/browse/EJBTHREE-2250
> Project: EJB 3.0
> Issue Type: Bug
> Components: ejb3
> Affects Versions: depchain-1.0.0-alpha-43
> Environment: Sun JDK 1.6.0_23 (32-bit), Windows XP
> Sun JDK 1.6.0_11 (64-bit), Red Hat Enterprise Linux ES release 4
> JBoss AS 6.0.0.Final
> Reporter: Paul Meadows
> Assignee: Carlo de Wolf
> Labels: ejb3, inheritance, transactions
>
> If a method in a bean's super-class uses EJBContext.getRollbackOnly() it fails to throw an IllegalStateException if the bean's TransactionAttribute is NOT_SUPPORTED (unless the bean itself overrides the method and explicitly calls the super-class). From the EJB spec' I'd expect getRollbackOnly() to throw java.lang.IllegalStateException in this case.
> This appears to be a regression in JBoss 6.0 (seen with jboss-6.0.0.Final). The code works as I'd expect with jboss-5.1.0.GA.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list