How do I call the shutdown method on the composite cache manager? What api set do I used?
If I am using a stateful session bean to wrap around the JCS, when the bean becomes passivate, I want to dump all the cach entries in memory to disk. Do I call the shutdown method in the passivate method? Is there a "start" method in the activate method? Thanks Smuts, Aaron wrote: > > This happens on normal shutdown. Call the shutdown method on the > composite cache manager. You can also register a context listener in a > web app to do this for you. > > > >> -----Original Message----- >> From: dadade [mailto:[EMAIL PROTECTED] >> Sent: Thursday, June 21, 2007 2:23 PM >> To: jcs-users@jakarta.apache.org >> Subject: Re: Dump Cache Entries in Memory to Index Disk >> >> >> I tried using the freeMemoryElements method but it is not working the > way >> I >> expected. >> >> Let's say I put 10 items in Memory Cache. Then I called >> freeMemoryElements >> and pass in 10 as the number to free. Then I shut down my > application. >> Next time, when I run my application to get the 10 items from the disk >> cache, only the last item is being retrieved correctly. All others' >> return >> values are null. >> >> Am I doing something wrong? >> >> >> >> >> >> dadade wrote: >> > >> > Hello, >> > >> > Is there a way (API) to spooled all the cache entries in LRU Memory > to >> > Index Disk? >> > Your help is appreciate. >> > >> > Thanks, >> > >> >> -- >> View this message in context: > http://www.nabble.com/Dump-Cache-Entries-in- >> Memory-to-Index-Disk-tf3960435.html#a11238770 >> Sent from the JCS - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Dump-Cache-Entries-in-Memory-to-Index-Disk-tf3960435.html#a11242670 Sent from the JCS - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]