google app engine - Is GAE Supports EHCache's Write-Behind Operation? -


i trying create web application uses ehcache store , retrieve data. me, following configuration working fine me.

<?xml version="1.0" encoding="utf-8"?>  <ehcache xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"      xsi:nonamespaceschemalocation="ehcache.xsd" >      <cachemanagereventlistenerfactory class="" properties=""/>      <defaultcache         maxelementsinmemory="10000"         eternal="false"         timetoidleseconds="120"         timetoliveseconds="120"         memorystoreevictionpolicy="lru">         <!-- <persistence strategy="none"/>  -->     </defaultcache>      <cache name="st"        maxelementsinmemory="10000"        eternal="false"        timetoidleseconds="300"        timetoliveseconds="600"        memorystoreevictionpolicy="lru"         />         </ehcache> 

but after introducing write-behind operation, getting following error.

config :

<?xml version="1.0" encoding="utf-8"?>  <ehcache xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"      xsi:nonamespaceschemalocation="ehcache.xsd" >      <cachemanagereventlistenerfactory class="" properties=""/>      <defaultcache         maxelementsinmemory="10000"         eternal="false"         timetoidleseconds="120"         timetoliveseconds="120"         memorystoreevictionpolicy="lru">         <!-- <persistence strategy="none"/>  -->     </defaultcache>      <cache name="st"        maxelementsinmemory="10000"        eternal="false"        timetoidleseconds="300"        timetoliveseconds="600"        memorystoreevictionpolicy="lru"         >         <!-- <persistence strategy="none"/>  -->             <cachewriter writemode="write-behind" maxwritedelay="8" ratelimitpersecond="5"       writecoalescing="true" writebatching="true" writebatchsize="20"       retryattempts="2" retryattemptdelayseconds="2">            <cachewriterfactory class="com.gowtham.st.shared.stwriterfactory" />         </cachewriter>        </cache> </ehcache> 

error :

org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.web.servlet.mvc.annotation.defaultannotationhandlermapping#0': initialization of bean failed; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'st' defined in file [/base/data/home/apps/s~google-test-40392/1.383872259417297841/web-inf/classes/com/gowtham/st/server/st.class]: instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [com.gowtham.st.server.st]: constructor threw exception; nested exception java.security.accesscontrolexception: access denied ("java.lang.runtimepermission" "modifythreadgroup") 

is there other way achieve this?

as ehcache write-behind uses threads directly, not able make work on gae out of box. development needed abstract thread creation , provide gae integration module.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -