[ 
https://issues.apache.org/jira/browse/OFBIZ-4836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260619#comment-13260619
 ] 

Pierre Smits commented on OFBIZ-4836:
-------------------------------------

Tenant independent (or rather delegator independent) would be the best approach 
from a scalability point of view. Store as much of the parameters as possible 
in OFBiz (Tenant)DataSource and load on startup (caching the lot).

Think of:
<!-- jcr home directory -->                                  <-- from 
jcr-config.xml
    <home-dir path="runtime/data/jcr/" />
<!-- jcr workspace credentials -->                           <-- from 
jcr-config.xml
    <jcr-credentials username="system" password="ofbiz" />


>From jackrabbit.xml the params:
${rep.home}
${wsp.name}
${minRecordLength}
${rep.supportHighlighting}
${wsp.supportHighlighting}
 
See below.


<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
</FileSystem>
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore" >
        <param name="path" value="${rep.home}/repository/datastore"/>
        <param name="minRecordLength" value="0"/>
</DataStore>
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
<Workspace name="${wsp.name}">
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${wsp.home}"/>
</FileSystem>
<PersistenceManager 
class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
    <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
    <param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
    <param name="path" value="${wsp.home}/index"/>
    <param name="supportHighlighting" value="true"/>
</SearchIndex>
</Workspace>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
    <param name="path" value="${rep.home}/repository/index"/>
    <param name="supportHighlighting" value="true"/>
</SearchIndex>
    -->
                
> Jackrabbit (jcr) doesn't work nice with multi-tenancy aspect of OFBiz
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-4836
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4836
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>             Fix For: SVN trunk
>
>         Attachments: jcr-config.xml
>
>
> When having multiple tenants and one of the users (of a tenant) creates 
> (uploads) a file to JCR then this file is visible to all users of all tenants

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to