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

Gavin King gavin.king at jboss.com
Tue Oct 3 19:46:03 EDT 2006


  User: gavin   
  Date: 06/10/03 19:46:03

  Modified:    doc/reference/en/modules  configuration.xml
  Log:
  JBSEAM-108
  
  Revision  Changes    Path
  1.25      +12 -0     jboss-seam/doc/reference/en/modules/configuration.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: configuration.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/configuration.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -b -r1.24 -r1.25
  --- configuration.xml	11 Jun 2006 01:23:22 -0000	1.24
  +++ configuration.xml	3 Oct 2006 23:46:03 -0000	1.25
  @@ -617,10 +617,22 @@
           </para>
           
           <programlisting><![CDATA[<session-factory name="java:/bookingSessionFactory">
  +		<property name="transaction.flush_before_completion">true</property>
  +		<property name="connection.release_mode">after_statement</property>
  +		<property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  +		<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
  +		<property name="connection.datasource">java:/bookingDatasource</property>
       ...
   </session-factory>]]></programlisting>
           
           <para>
  +            Note that Seam does not flush the session, so you should always enable
  +            <literal>hibernate.transaction.flush_before_completion</literal> to 
  +            ensure that the session is automatically flushed before the JTA transaction
  +            commits.
  +        </para>
  +        
  +        <para>
               We can now have a managed Hibernate <literal>Session</literal> injected into our
               JavaBean components using the following code:
           </para>
  
  
  



More information about the jboss-cvs-commits mailing list