--- Russell East <[EMAIL PROTECTED]> wrote: Couple of questions: > 1) I suppose that only one application instance > at a time, on a > particular computer, can reliably use a jcs region, > right?
No. I run upwards of 5 or 6 tomcat instances running different applications each using JCS on a single box. If they are using distribution plugins that require them to bind to aprticular port, then I just configure them to listen to different ports. > 2) is there any code to synch access to the same > cache region within > 2 or more apps running on the same machine? Yes. Just have them listen to different ports if use the tcp lateral or the rmi remote cache. > 3) when the application ends, I call > JCS.dispose() which takes > several seconds to complete, presumably defragging > the cache data - is > there a way to prevent defragging upon dispose? > Would it be advisable > to do that? No you can't stop it right now, but you can set a max wait time. The remote cache client does not shutdown properly, forcing you to kill the application. > 4) correspondingly, is there a way to flush > memory to disk every now > and then, not necessarily defragging? Yes, there is a brand new method that will do this. You can tell it the number to free. You can pass it the size. It's called freeMemoryElements. > > That'll will do for starters I think - thanks in > advance. j > -- Russell Cheers, Aaron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]