Thanks for your reply jorge We provide the auxillary devices so it should save the data and key to the auxillary device but the problem was the key was getting saved only during normal shutdown so i moved to the blockDiskCache where i have an option jcs.auxiliary.blockDiskCache.attributes.KeyPersistenceIntervalSeconds=600 so that they key will get saved for each and every 600 seconds. This is how i made sure that lossing the key is minimized.
Regards, Matheswaran N Jorge Medina-5 wrote: > > I think I have heard this problem before in the forum. > > If I remember correctly, the answer is that JCS is a cache, not a > database. Do not expect the ACID properties of a database to be > provided by the cache. > You should not expect it to survive a crash, your application should > just start building the cache again as requests are served. > > Some threads you may find useful: > > http://markmail.org/search/?q=JCS+key+persistence+list%3Aorg.apache.jakarta.jcs-users#query:JCS%20key%20persistence%20list%3Aorg.apache.jakarta.jcs-users+page:1+mid:wpljkuc7kwbgn3hr+state:results > > http://markmail.org/search/?q=JCS+key+persistence+list%3Aorg.apache.jakarta.jcs-users#query:JCS%20key%20persistence%20list%3Aorg.apache.jakarta.jcs-users+page:1+mid:tq4vkzfiebh2ak2u+state:results > > > -Jorge > > On Thu, Nov 11, 2010 at 4:52 AM, Matheswaran Nachimuthu > <matheswara...@infosys.com> wrote: >> >> Hi, >> >> I am using JCS 1.3 with the auxillary indexed disk cache. The data is >> getting stored but the key is getting stored to the disk only while >> shutting >> my tomcat. I have a problem if my tomcat crashes, the key is lost and not >> getting updated to the key's file in the disk. Is it possible to write >> the >> key as we write the data into the cache in JCS? Please help >> >> Regards, >> Matheswaran N >> -- >> View this message in context: >> http://old.nabble.com/Key-not-getting-cached-tp30188546p30188546.html >> Sent from the JCS - Users mailing list archive at Nabble.com. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jcs-users-h...@jakarta.apache.org > > > -- View this message in context: http://old.nabble.com/Key-not-getting-cached-tp30188546p30254635.html Sent from the JCS - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org For additional commands, e-mail: jcs-users-h...@jakarta.apache.org