From do-not-reply at jboss.org Wed Nov 30 09:02:48 2011 Content-Type: multipart/mixed; boundary="===============0885413958140476694==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r5249 - jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/jcr/configuration. Date: Wed, 30 Nov 2011 09:02:46 -0500 Message-ID: <201111301402.pAUE2kiQ029195@svn01.web.mwc.hst.phx2.redhat.com> --===============0885413958140476694== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: tolusha Date: 2011-11-30 09:02:46 -0500 (Wed, 30 Nov 2011) New Revision: 5249 Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/= modules/jcr/configuration/multi-db-schema-support.xml Log: EXOJCR-1648: fix doc Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook= /en-US/modules/jcr/configuration/multi-db-schema-support.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 --- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/multi-db-schema-support.xml 2011-11-30 13:26:02 = UTC (rev 5248) +++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US= /modules/jcr/configuration/multi-db-schema-support.xml 2011-11-30 14:02:46 = UTC (rev 5249) @@ -4,24 +4,28 @@ = - JBossCache configuration for Multi DB Schema support + How to host several JCR instances on the same database + instance? =
Concepts = - This feature allows us to use the same database instance for sev= eral - JCR instances just by using different schemas/users. It is possible - because database queries are to be launched in the scope of current - schema. + Frequently a single database instance must be shared by several + other applications. But some of our customers have also asked for a wa= y to + host several JCR instances in the same database instance. To fulfill t= his + need, we had to review our queries and scope them to the current schem= a; + it=E2=80=99s now possible to have one JCR instance per DB schema inste= ad of per DB + instance. To benefit of the work done for this feature you will need to + apply the configuration changes described in the next sections.
=
LockManager configuration = - To enable the feature you need to mention - org.exoplatform.services.jcr.impl.core.lock.jbosscache.JDBCCacheLoader - instead of org.jboss.cache.loader.JDBCCacheLoader in JBossCache - configuration file. + To enable this feature you need to replace + org.jboss.cache.loader.JDBCCacheLoader with + org.exoplatform.services.jcr.impl.core.lock.jbosscache.JDBCCacheLoader= in + JBossCache configuration file. = Here is an example of this very part of the configuration: = @@ -69,9 +73,10 @@
HibernateService configuration = - If you use HibernateService for JDBC connections management you = also - may specify default schema by setting "hibernate.default_schema" prope= rty - in the configuration of HibernateService. + If you use HibernateService for JDBC connections management you = will + need to specify explicitly the default schema by setting + "hibernate.default_schema" property in the configuration of + HibernateService. = Here is an example: = --===============0885413958140476694==--