5 Replies Latest reply on Oct 13, 2009 4:46 PM by Ross Nicholson

    Perform database operation outside Seam tranaction

    Ross Nicholson Apprentice

      I have a need to be able to perform a database operation outside of the transaction managed by Seam.


      I'd like to know if this is possible. We have several thrid party db's which we interact with which we end up locking.


      We only have a few actions which require this functionality, but these actions would still require transaction management as well as parts which are not managed.


      Currently our solution is a fragile hack where we sub commit within the action


                Transaction.instance().commit();
                Transaction.instance().begin();


      Unfortunately this commits everything.


      Is there a better way to do this?