Hi Luis, ----- Original Message ----- From: "Luis Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 2:28 AM Subject: OJB on Distributed Systems
> > Hello, > > I'm currently working on a project in which multiple server applications > access the same database. Each server uses OJB to access the database. > > My question is if OJB has some form of syncronizing the object cache > between the servers? OJB is shipped with an ObjectCache implementation using JCS. JCS supports remote server clustering, please see http://jakarta.apache.org/turbine/jcs/index.html (I don't having tried this ;-) ) > If not, is there any way to guaranty that the cache > will be refreshed every few hours? Currently we don't have such a timestamp based ObjectCache implementation, but with a vew lines of code you should be able to implement such an implementation (e.g. extend ObjectCacheDefaultImpl use custom attributes to set timestamp in class-descriptor, check timestamp before return object from cache) Also you could use ObjectCachePerBrokerImpl this implementation clear the whole cache on PB.close(). Some weeks ago I promised to refactoring the cache implementation, respectively to implement a more sophisticated cache, but it's not as simple as it seems ;-) regards, Armin > > Any advise is greatly appreciated, > Luis Cruz > > > > --------------------------------------------------------------------- > 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]
