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

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

Hi Sascha,

References to tenants are stored in entity Tenant. See 
https://demo-trunk.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=Tenant&find=true

The tenantId is used as the delegator to persist the OFBiz data in the 
TenantDataSouce.

Each tenant has its own OFBiz data storage and that is defined in 
TenantDataSource. See 
https://demo-trunk.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=TenantDataSource&find=true

If we can reuse that data then a JCR repository could be like: <home-dir 
path="runtime/data/jcr/<tenantId>/" />

While keeping in mind that the first part of the  home-dir path 
(runtime/data/jcr) is set through jcr-config.xml.

Regards,

Pierre
                
> 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
>
>
> 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