1 Reply Latest reply on Aug 31, 2007 10:04 AM by brian.stansberry

    Exception Handling between Jboss 3.2.6 & JBoss4.0.5GA

    anandnatraj

      Do we have any difference in the way the Exception 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.

        • 1. Re: Exception Handling between Jboss 3.2.6 & JBoss4.0.5GA
          brian.stansberry

          Did you try to post on a JTA user forum and end up on "Design of Clustering" instead? This is the second post I've seen on this forum this week asking obscure JTA questions complete unrelated to the forum topic. I'm wondering if there's a problem in the forum software.

          If you did deliberately post here, please use a user forum related to your question.