This content has been marked as final.
Show 3 replies
-
1. Re: Passivation and CacheLoader
aditsu Nov 23, 2007 4:12 AM (in response to bedek)You can do that by using no cache loader at all. To preload values, just manually get them from the DB and put them in the cache.
To persist changes, use a cache listener.
At least that's what I did :)
Adrian -
2. Re: Passivation and CacheLoader
bedek Nov 23, 2007 5:21 AM (in response to bedek)Hi, thanx for anser, this idea look very interesting for me but still I have questions:
1) What method/class are you using to preload data from DB to cache ?
2) How to you persist data in DB - are you using some ready made method/class form org.jboss.cache ?"aditsu" wrote:
You can do that by using no cache loader at all. To preload values, just manually get them from the DB and put them in the cache.
To persist changes, use a cache listener.
At least that's what I did :)
Adrian -
3. Re: Passivation and CacheLoader
aditsu Nov 23, 2007 6:12 AM (in response to bedek)Just custom code. If you want to use JDBCCacheLoader's table structure, then you can extract the code from JDBCCacheLoader for working with the db, and call it directly. Otherwise, just write your own. I use iBATIS.