-
1. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
mgencur Jul 20, 2012 3:07 PM (in response to alon.marom)When the "passivation" attribute is set to false, entries are written to a cache store (no matter it is file cache store or jdbc cache store) right after they are stored in the cache and thus a file is created in the filesystem.
Why would you create a file when a cache entry is modified? Not sure what you wanna achieve here.
-
2. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
alon.marom Jul 22, 2012 10:10 AM (in response to mgencur)Passivation default value is false (I added it anyway) still did not work meaning the file did no saved the changes
I my system I have a cached object that are not changing much.
I want to use a file store as a simple persistent solution
If the machine lost power and restarting I need bring the server to the state that it hadThat is why I need the file store to save changes of the cache objects continuslly
Any ideas ?
Thanks,
A
-
3. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
mgencur Jul 23, 2012 3:05 AM (in response to alon.marom)Ok, I understand what you would like to achieve and I'm pretty sure this works in Infinispan.
How do you store the changes to those objects? Are you using .replace() method or simply suppose that any change to that object (like changing its field) will be automatically persisted? ...cos the latter is not supported by ISPN.
-
4. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
alon.marom Jul 25, 2012 12:09 PM (in response to mgencur)Oops
What is not supported the update of the store on change to a field object
Or generally any change to a field object?
Let’s say in cluster mode one make a change the other will not see it?
-
5. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
galder.zamarreno Jul 26, 2012 2:51 AM (in response to alon.marom)If you make any changes to an object, you need to then call cache.put() or equivalent call to make sure the changes are reflected in the cache.
-
6. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
alon.marom Jul 28, 2012 3:47 PM (in response to galder.zamarreno)I remeber working with Jboss Cache that I did not need to do it :-(
Is there a cache annotation I can add ?
-
7. Re: how to set infinispan filestore to store changs (5.0.1.FINAL)
mircea.markus Jul 31, 2012 11:07 AM (in response to alon.marom)There's no annotation that can help you with this.
In JBossCache you pretty much needed to do the same thing actually. PojoCache indeed offered this funcionality.
If you need a similar approach to PojoCache - but much nicer - take a look at Hibernate OGM(http://www.hibernate.org/subprojects/ogm.html) as it can be configured to store data in the infinispan grid.