Re: trying out caching

2016-12-10 Thread Stephen Cameron
Thanks Andy, I will switch to the datanucleus forum for this specific problem. More generally, I did hope that adding caching was low-hanging fruit, but seems its more complex than I imagined. Maybe not the thing to tackle in the weeks before Christmas. My app is read intensive, so adding caching

Re: trying out caching

2016-12-10 Thread Andy Jefferson
> However, the following exception is common to the range of cache > implementations I've tried. I'm using datanucleus-core.4.1.7.jar > I'll see if Andy will talk to me .. > - java.lang.ClassCastException > - org.datanucleus.identity.SCOID cannot be cast to java.io.Serializable > - > org.da

Re: trying out caching

2016-12-10 Thread Stephen Cameron
However, the following exception is common to the range of cache implementations I've tried. I'm using datanucleus-core.4.1.7.jar I'll see if Andy will talk to me .. - java.lang.ClassCastException - org.datanucleus.identity.SCOID cannot be cast to java.io.Serializable - org.datanucleu

Re: trying out caching

2016-12-09 Thread Stephen Cameron
No problem. On Fri, Dec 9, 2016 at 9:16 PM, Dan Haywood wrote: > Sure.. I was just suggesting a couple of paragraphs capturing the contents > of this particular thread, ie how to enable caching. > > > On Fri, 9 Dec 2016 at 09:59 Stephen Cameron > wrote: > > > I'll see what I can do, its a new a

Re: trying out caching

2016-12-09 Thread Dan Haywood
Sure.. I was just suggesting a couple of paragraphs capturing the contents of this particular thread, ie how to enable caching. On Fri, 9 Dec 2016 at 09:59 Stephen Cameron wrote: > I'll see what I can do, its a new area for me and alot to read up on. Maybe > even a fast moving area at the momen

Re: trying out caching

2016-12-09 Thread Stephen Cameron
I'll see what I can do, its a new area for me and alot to read up on. Maybe even a fast moving area at the moment, with things like Apache Ignite On Fri, Dec 9, 2016 at 6:00 PM, Dan Haywood wrote: > Thanks for doing this exploration... I've made a note to add something to > the docs, but even be

Re: trying out caching

2016-12-08 Thread Dan Haywood
Thanks for doing this exploration... I've made a note to add something to the docs, but even better would be a PR from yourself to add it. Perhaps a new section in "other techniques" chapter of the "beyond the basics" guide [1,2]? Cheers dan [1] http://isis.apache.org/guides/ugbtb.html#_ugbtb_ot

Re: trying out caching

2016-12-08 Thread Stephen Cameron
Hazelcast (https://hazelcast.org/) works 'out of the box' as a JSR-170 javax.cache implementation. No config file expected. I have: isis.persistor.datanucleus.impl.datanucleus.cache.level2.type=javax.cache isis.persistor.datanucleus.impl.datanucleus.cache.level2.mode=UNSPECIFIED isis.persistor.da

Re: trying out caching

2016-12-08 Thread Stephen Cameron
Thanks Andy, sorry for my astounding naïveté. I see now there is a page where JSR-107 implementations are listed: https://jcp.org/aboutJava/communityprocess/implementations/jsr107/index.html 7.5 Billion people in the world and only one person working on DataNucleus, why?! On Thu, Dec 8, 2016 at

AW: trying out caching

2016-12-08 Thread Rade, Joerg / Kuehne + Nagel / Ham GI-DP
Hi Andy, >its own JDO implementation as well as its own JPA implementation, etc? All >with 1 developer?! Respect & Thanks! -j Kühne + Nagel (AG & Co.) KG Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878. Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Dr. Hansjörg Rod

Re: trying out caching

2016-12-07 Thread Andy Jefferson
> Caused by: org.datanucleus.exceptions.NucleusException: Error creating > cache >at > org.datanucleus.cache.JavaxCacheLevel2Cache.( > JavaxCacheLevel2Cache.java:98) You did not put a Javax.cache provider in your CLASSPATH. As Oscar suggested. DataNucleus provides "a simple wrapper to javax.c

Re: trying out caching

2016-12-07 Thread Stephen Cameron
Hi Oscar, The way I read the documentation 'javax.cache' as the configuration value should use a standard caching framework 'out of the box' so to speak. I can try the other caching options but was wondering if anyone else might have used that one. Cheers On Wed, Dec 7, 2016 at 11:02 PM, Óscar

Re: trying out caching

2016-12-07 Thread Óscar Bou - GOVERTIS
Hi Stephen. Have you tried to add through Maven any of the Java Caches available? As per [1], seems DN declares a wrapper arround them, so you will need to add one implementation. Many are mentioned on the URL you included. HTH, Oscar > El 7 dic 2016, a las 12:47, Stephen Cameron >

trying out caching

2016-12-07 Thread Stephen Cameron
Hi, I am interested to try Level 2 caching to see what performance benefits I can gain. At the moment I cannot configure it. In the file persistor_datanucleus.properties I have these settings: # # L2 cache # off except if explicitly marked as cacheable # http://www.datanucleus.org/products/data