2 Replies Latest reply on Sep 8, 2005 11:55 AM by Emmanuel Bernard

    JBoss 4.0.3rc2 & Exceptions

    J-C jc Apprentice

      I have a strange behavour with EJB3/JBoss4.0.3rc2 and exceptions.
      I have 2 Session beans:

       public void m1() {
       try {
       } catch (MyException e) {
       System.out.println("Rollback :"+ctx.getRollbackOnly());

       public void m2(String name) throws MyException {
       throw new MyException();

      If MyException is a RuntimeException, JTA transaction is rollbacked. If it is an Exception, transaction is not rollbacked.

      Is it the standard behavior ?