title: JavaEE - EJB 3.1: Can we force transaction rollback on checked exceptions?
body: <p>I know that if an EJB method throws a checked exception there is no transaction rollback.</p>
  
  <p>But is there a way to force the rollback when there is a checked exception without having to call <code>setRollbackOnly()</code> in each method or create my own Exception class annotated with <code>@ApplicationException(rollback=true)</code>?</p>
  
  <p>Currently all our EJB methods are throwing Exception (<code>mymethod() throws Exception</code>) and we would like to apply a quick fix to have transaction rollback when this kind of exception is thrown without having to modify each method signature.</p>
  
  <p>Is it possible by modifying a parameter on the application server (currently using Jboss AS 7.1.1), using an annotation on my EJB classes or by defining some kind of interceptor ?</p>
  
  <p>Thanks for any help ;)</p>