1 Reply Latest reply on Mar 26, 2015 8:48 AM by hchiorean

    Managing modeshape transactions and oracle database transactions at the same time

    caliskan

      I want to manage modeshape transactions and oracle database hibernate transactions at the same time, is it possible?

      If it is, then how?


      Function(){
         ReadEntityFromDatabase();
         AddModeshape();
         Commit();
      }
      
        • 1. Re: Managing modeshape transactions and oracle database transactions at the same time
          hchiorean

          You need to handle the transaction management from your own code. You can do that either via

          - user transactions - use the transaction manager to start/commit the transaction

          - CMT - use the container to manage the transactions for you (e.g via CDI)

           

          In either case, ModeShape will see the existence of a transaction and will enroll in it, as opposed to starting/stopping its own transactions. Hibernate most likely has the same support.