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