3 Replies Latest reply on Aug 12, 2004 8:27 AM by aloubyansky

    problem with transactions

      Hello,

      I'm trying to use transaction on a Method of my Session Bean that calls many other methods of some CMP EJBS in the process of calculating and etc. but if there was an error it won't rolled back all it have been done in DB and just throw the exception error, what can i do? to lock all records and made all changes and if an error was accured to roll back and unlock all data...

      10x ahead,
      netanel

        • 1. Re: problem with transactions
          aloubyansky

          Can you post a stacktrace of that error?

          • 2. Re: problem with transactions

            it's not the error in the transaction the is not working correct... it is when an error occur from some reason then only a part of the whole transaction is rolled back and not all the tasks that have been called since the begining of the transaction. it a transction from a session bean that calls some ejbs and update some tables or create new records on them.
            i defined in the ejb-jar.xml file the methods of the session bean as require in the mode of transaction and the methods of the ejbs in the ejb-jar.xml is defined as support and all of them is managed by the container.

            10x ahead,
            netanel

            • 3. Re: problem with transactions
              aloubyansky

              You have to provide more info or a testcase as it works for me. Are there methods with NotSupported?