Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356932

Summary: [EclipseLink] support tenants-share-cache persistence unit property
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard: EclipseLink

Description Karen Butzke CLA 2011-09-07 09:33:58 EDT
Add support for the persistence.xml property "eclipselink.multitenant.tenants-share-cache" The default is false. If it is set to true then all multitenant entities will have a PROTECTED cache (CacheIsolationType.PROTECTED). We need to make this the default for multitenant entities.

We probably need a validation error/warning if the cache isolation is set to something other than PROTECTED for a multitenant entity. That setting will just be ignored.
Comment 1 Karen Butzke CLA 2011-09-21 09:34:37 EDT
The default has been changed to ISOLATED, see bug 357476
Comment 2 Karen Butzke CLA 2011-10-06 10:49:15 EDT
     * Property <code>"eclipselink.multitenant.tenants-share-cache</code> 
     * specifies that multitenant entities will share the L2 cache. By default 
     * this property is false meaning multitenant entities will have an ISOLATED 
     * setting. When setting it to true a PROTECTED cache setting will be used.
     * 
     * WARNING: Queries that use the cache may return data from other tenants 
     * when using the PROTECTED setting.

We will not be adding a UI widget for this setting, it is an advanced and obscure setting and has potential security issues with setting it to true.
Comment 3 Karen Butzke CLA 2011-10-21 14:32:49 EDT
We will not need this support since we are not supporting bug 360594