From hibernate-commits at lists.jboss.org Tue Feb 26 16:54:02 2008 Content-Type: multipart/mixed; boundary="===============1363488116812232370==" MIME-Version: 1.0 From: hibernate-commits at lists.jboss.org To: hibernate-commits at lists.jboss.org Subject: [hibernate-commits] Hibernate SVN: r14366 - core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content. Date: Tue, 26 Feb 2008 16:54:02 -0500 Message-ID: --===============1363488116812232370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: bstansberry(a)jboss.com Date: 2008-02-26 16:54:02 -0500 (Tue, 26 Feb 2008) New Revision: 14366 Modified: core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/conf= iguration.xml core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/intr= oduction.xml Log: Document JTA requirement Modified: core/trunk/documentation/jbosscache2/src/main/docbook/en-US/conte= nt/configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/con= figuration.xml 2008-02-26 18:53:26 UTC (rev 14365) +++ core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/con= figuration.xml 2008-02-26 21:54:02 UTC (rev 14366) @@ -37,11 +37,20 @@ Basics = - There are four basic steps to configuring the = + There are five basic steps to configuring the = SessionFactory: = + = + + Make sure your Hibernate is configured to use JTA tran= sactions. + See + for details. + + + = + Tell Hibernate you whether to enable caching of entitie= s and = collections. No need to set this property if you don't: Modified: core/trunk/documentation/jbosscache2/src/main/docbook/en-US/conte= nt/introduction.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/int= roduction.xml 2008-02-26 18:53:26 UTC (rev 14365) +++ core/trunk/documentation/jbosscache2/src/main/docbook/en-US/content/int= roduction.xml 2008-02-26 21:54:02 UTC (rev 14366) @@ -65,6 +65,8 @@ Requirements = + + Dependencies Second level caching with JBoss Cache 2 requires the use of JBoss Cache 2.1.0 or later. The core JBoss Cache project is used; the @@ -104,7 +106,44 @@ and tell the SessionFactory to use them; see = for details. + = + + JTA Transactional Support + + JBoss Cache requires integration with a JTA = + TransactionManager in order to meet the require= ments + of the second level caching use case. This means your Hibernate + application must be configured to use JTA: + = + + + + You must configure a hibernate.transaction.manager_lo= okup_class. + + + + + You must configure a hibernate.transaction.factory_cl= ass, = + specifying a transaction factory that supports JTA. In practic= e, this means + org.hibernate.transaction.JTATransactionFactory if + you are using JTA directly, or org.hibernate.transact= ion.CMTTransactionFactory + if you are accessing Hibernate via a CMT session bean. + + + + + Finally, make sure hibernate.current_session_context_= class + is either unset (backwards compatiblity), or set to "= jta". + + + + = + + See the Hibernate Reference Documentation for + an in-depth discussion of using Hibernate with JTA + + = --===============1363488116812232370==--