[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2134) Application Exception designations are not being respected in either ejb-jar.xml or via @ApplicationException annotations
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Wed Nov 10 06:37:03 EST 2010
[ https://jira.jboss.org/browse/EJBTHREE-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlo de Wolf resolved EJBTHREE-2134.
-------------------------------------
Fix Version/s: depchain-1.0.0
(was: EJB 3.1)
Resolution: Done
> Application Exception designations are not being respected in either ejb-jar.xml or via @ApplicationException annotations
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-2134
> URL: https://jira.jboss.org/browse/EJBTHREE-2134
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: depchain-1.0.0-alpha-4
> Environment: JBoss AS 6 M4
> Reporter: Lincoln Baxter III
> Assignee: Carlo de Wolf
> Priority: Critical
> Fix For: depchain-1.0.0
>
>
> "14.2.1: By default, designating an unchecked exception as an application exception also applies to subclasses of that exception."
> Currently, whether annotating an exception class with @ApplicationException, or using ejb-jar.xml, the subclasses of those designated exceptions are not being applied.
> This means that each individual exception must be annotated or defined in ejb-jar.xml
> For example, NoSuchObjectException extends DataException, but without the following configuration, NoSuchObjectException will be wrapped in EJBException and the transaction will be rolled back.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd">
>
> <assembly-descriptor>
> <application-exception>
> <exception-class>javax.persistence.PersistenceException</exception-class>
> <rollback>true</rollback>
> </application-exception>
> <application-exception>
> <exception-class>com.ocpsoft.exceptions.DataException</exception-class>
> <rollback>false</rollback>
> </application-exception>
> <!-- This is required or we get EJBException wrapping and transaction rollbacks... wrong! -->
> <application-exception>
> <exception-class>com.ocpsoft.exceptions.NoSuchObjectException</exception-class>
> <rollback>false</rollback>
> </application-exception>
> </assembly-descriptor>
> </ejb-jar>
--
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