0 Replies Latest reply on Sep 29, 2009 6:19 PM by asookazian

    Transactional annotation - again

    asookazian

      ok so not only does @Transactional lack some important TransactionPropagationTypes (see https://jira.jboss.org/jira/browse/JBSEAM-4391) but the default TransactionPropagationType is SUPPORTS, not REQUIRED like in EJB 3 CMT.



      Specifies that the transaction propagation for a JavaBean component or method of a JavaBean component. JavaBean components have @Transactional(SUPPORTS) behavior if no @Transactional annotation is specified.

      http://docs.jboss.org/seam/2.2.0.GA/api/org/jboss/seam/annotations/Transactional.html


      Somebody plz explain this difference.  Was it a technical difficulty to use REQUIRED?  Or was the EJB 3 CMT default wrongREQUIRED will start a tx if one is not active, SUPPORTS will not.


      thx.