Java Reference
In-Depth Information
application-exception
The <application-exception> tag specifies a list of application-specific excep-
tions that may be thrown by your EJBs and MDBs:
<ejb-jar...>
<assembly-descriptor>
<application-exception>...</application-exception>
</assembly-descriptor>
</ejb-jar>
By listing application exceptions, you can configure whether the exception will cause a
rollback of the current transaction. By default, an EJBException will trigger a rollback
but application exceptions do not. This tag corresponds to the @ ApplicationExcep-
tion annotation. Table A.10 describes the tags to configure <application-excep-
tion> .
Table A.10. Tags to configure <application-exception>
Tag name
Description
exception-class
Specifies the fully qualified name of the exception class.
Specifies if the container should roll back the transaction before
throwing the exception up to the client.
rollback
 
Search WWH ::




Custom Search