Reputation: 33
my team is having problems due to transactions that do not rollback after application exceptions. I created a configuration so that all exceptions that were subclasses of Exception would generate rollback, but the configuration did not work. Does anyone know what I did wrong? I put the fallowing configuration in ejb-jar file inside WEB-INF
<assembly-descriptor>
<application-exception>
<exception-class>java.lang.Exception</exception-class>
<rollback>true</rollback>
<inherited>true</inherited>
</application-exception>
</assembly-descriptor>
Upvotes: 0
Views: 306
Reputation: 1271
The configuration you use must be included into META-INF/ejb-jar.xml, you can find and example here:
Upvotes: -1