1 Reply Latest reply on Sep 3, 2007 4:38 PM by marklittle

    Exception Handling Difference between JBoss 3.2.6 and Jboss4

    anandnatraj

      Do we have any difference in the way the Transaction - Exceptions are handled with Jboss3.2.6 and JBoss4.0.5GA? I have one scenario where from the Program I am throwing the SystemException Manually but the exception message thrown seems to be different..


      Scenario:

      1. Complete Step 1 (WIth one transaction)

      Status: data are changed in accordance with Step1 usecase

      2. Complete Step2 (With new transaction). We are throwing System Exception manually.



      In jboss-3.2.6
      ==========

      Step1 started with new transaction and process gets committed since no system exception is thrown.

      Step2 started with new transaction but gets rolled back since System Exception thrown and also further execution stops. This behavior is as expected



      In jboss-4.0.5.GA
      =============

      Step 1started with new transaction and process gets committed since no system exception is thrown.

      In Sample Prep Conversion Call type while getting rollback because of system exception ?java.lang.IllegalStateException: setRollbackOnly() not allowed without a transaction? is thrown. Seems the transaction is not created.