[jboss-cvs] jboss-seam/doc/reference/en/modules ...

Peter Muir peter at bleepbleep.org.uk
Wed Oct 17 14:13:59 EDT 2007


  User: pmuir   
  Date: 07/10/17 14:13:58

  Modified:    doc/reference/en/modules  persistence.xml
  Log:
  JBSEAM-2011
  
  Revision  Changes    Path
  1.18      +11 -0     jboss-seam/doc/reference/en/modules/persistence.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: persistence.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/persistence.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- persistence.xml	11 Oct 2007 13:00:11 -0000	1.17
  +++ persistence.xml	17 Oct 2007 18:13:58 -0000	1.18
  @@ -326,6 +326,17 @@
   
           <programlisting><![CDATA[@In EntityManager bookingDatabase;]]></programlisting>
                   
  +        <para>
  +            If you are using EJB3 and mark your class or method 
  +            <literal>@TransactionAttribute(REQUIRES_NEW)</literal> then the 
  +            transaction and persistence context shouldn't be propagated to method
  +            calls on this object.  However as the Seam-managed persistence
  +            context is propagated to any component within the conversation, it
  +            will be propagated to methods marked <literal>REQUIRES_NEW</literal>.
  +            Therefore, if you mark a method <literal>REQUIRES_NEW</literal> then
  +            you should access the entity manager using @PersistenceContext.
  +        </para>
  +                
       </section>
   
       <section>
  
  
  



More information about the jboss-cvs-commits mailing list