Showing posts with label Datanucleus. Show all posts
Showing posts with label Datanucleus. Show all posts

Tuesday, September 29, 2009

Datanucleus Level 2 Cache in app engine

Level 2 cache is disabled by default in Datanucleus, 
to enable it you've gotta 
  • download the cache plugin here
  • place it in your applications lib directory
  • edit your persistence.xml and add
    • <property name="datanucleus.cache.level2" value="true">
      <property name="datanucleus.cache.level2.type" value="soft">

      after

      <property name="datanucleus.ConnectionURL" value="appengine"/>
    Additional configuration options are available here.


    App engines memcache implements JCache(javax.cache) interface, but i get a serialization error when attempting to save a object.