2 Replies Latest reply on Oct 3, 2009 6:26 AM by Arbi Sookazian

    Transactional and REQUIRES_NEW for seam components

    Marco Röösli Newbie

      Is there a way to use TransactionPropagationType


      REQUIRES_NEW 



      for a seam component?


      In org.jboss.seam.annotations.TransactionPropagationType are just


      REQUIRED,
      MANDATORY, 
      SUPPORTS,
      NEVER;



      I saw that there is javax.ejb.TransactionAttribute but this is only for EJBs.
      I need the same behavior from for seam as


       @TransactionAttribute(REQUIRES_NEW)



      is for EJBs.


      I want that if a transaction is active that it will be suspended then create a new transaction do my operations commit the new transaction and resume the old active transaction.

      how can I do that?


      Thx for your help


      Greetz Marco