[jira] Updated: (JCR-872) Cache framework integration
[ https://issues.apache.org/jira/browse/JCR-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Padraic Hannon updated JCR-872: --- Attachment: ocm_cache.zip Here is the work I have done so far. I do not have test cases specific for this implementation as I have been working on these files against my existing internal test cases. To use this from within Spring (it requires SessionFactory to make everything work), wire it up as a replacement to JcrMappingTemplate: bean id=secondLevelCache class=org.apache.jackrabbit.ocm.objectconverter.cache.ehcache.SynchronizedEhCacheObjectCache singleton=true constructor-arg index=0 ref=jcrSessionFactory/ /bean bean id=vdmMappingTemplate class=org.apache.jackrabbit.ocm.spring.JcrCachedMappingTemplate constructor-arg index=0 ref=jcrSessionFactory/ constructor-arg index=1 ref=jcrMappingDescriptor/ constructor-arg index=2 ref=secondLevelCache/ property name=allowCreate value=false/ /bean Cache framework integration --- Key: JCR-872 URL: https://issues.apache.org/jira/browse/JCR-872 Project: Jackrabbit Issue Type: Task Components: jackrabbit-ocm Reporter: Christophe Lombart Attachments: ocm_cache.zip OCM should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-872) Cache framework integration
[ https://issues.apache.org/jira/browse/JCR-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mueller updated JCR-872: --- Description: OCM should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required was: The PersistenceManager should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required I was confused because the description said 'the PersistenceManager'. I see this is about OCM. Cache framework integration --- Key: JCR-872 URL: https://issues.apache.org/jira/browse/JCR-872 Project: Jackrabbit Issue Type: Task Components: jackrabbit-ocm Reporter: Christophe Lombart Attachments: observableCache.patch OCM should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-872) Cache framework integration
[ https://issues.apache.org/jira/browse/JCR-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Padraic Hannon updated JCR-872: --- Attachment: (was: observableCache.patch) Cache framework integration --- Key: JCR-872 URL: https://issues.apache.org/jira/browse/JCR-872 Project: Jackrabbit Issue Type: Task Components: jackrabbit-ocm Reporter: Christophe Lombart OCM should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-872) Cache framework integration
[ https://issues.apache.org/jira/browse/JCR-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Padraic Hannon updated JCR-872: --- Attachment: observableCache.patch This patch provides the following: 1) Updates to RequestObjectCacheImpl to provide observation to flush based on jcr events 2) Updates ObjectCache interface to extend Map (first step in allowing other caches) 3) Provides the ability to set the cache on the ObjectContentManager and have that ripple to the ObjectConverterImpl (so we can use a config file to set cache after construction of the content manager) 4) Simple cache unit tests I was going to go down the hibernate cache provider route, but felt it was a bit overkill. Tomorrow I will create instances of the cache using EhCache. From there I think I will try a Tangosol one. Cache framework integration --- Key: JCR-872 URL: https://issues.apache.org/jira/browse/JCR-872 Project: Jackrabbit Issue Type: Task Components: jackrabbit-ocm Reporter: Christophe Lombart Attachments: observableCache.patch The PersistenceManager should work with a cache manager. * The Spring frameworks offer a nice solution to integrate an application with a cache manager (based on AOP). * Which cache framework to use ? oscache, JCS, ... * A more detailled proposal is required -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.